diff options
author | 2019-02-14 18:31:05 +0530 | |
---|---|---|
committer | 2019-02-14 18:31:05 +0530 | |
commit | e13c1bd3ecc6dafa5c8724591d5f571617d7f293 (patch) | |
tree | cef277f343158b3839e523522436cf418f0eb1c2 | |
parent | I have made the following changes : (diff) |
I have made the command .refreshlovefest modertaor only using the decorator @with_role
-rw-r--r-- | bot/seasons/valentines/be_my_valentine.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/seasons/valentines/be_my_valentine.py b/bot/seasons/valentines/be_my_valentine.py index ad543315..1c387f66 100644 --- a/bot/seasons/valentines/be_my_valentine.py +++ b/bot/seasons/valentines/be_my_valentine.py @@ -8,7 +8,8 @@ import discord from discord.ext import commands from discord.ext.commands.cooldowns import BucketType -from bot.constants import Colours, Lovefest +from bot.constants import Colours, Lovefest, Roles +from bot.decorators import with_role log = logging.getLogger(__name__) @@ -43,6 +44,7 @@ class BeMyValentine: else: await ctx.send("You already have the role !") + @with_role(Roles.moderator) @commands.command(name='refreshlovefest') async def refresh_user_lovefestlist(self, ctx): """ |