From 1317b7eaf347a7f56bfe39b3a1dd3879c466892e Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 14 Jun 2018 10:50:41 -0800 Subject: [PATCH] Added cooldowns to claim and unclaim --- src/cogs/bot_management.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cogs/bot_management.py b/src/cogs/bot_management.py index 2c27f83..4801954 100644 --- a/src/cogs/bot_management.py +++ b/src/cogs/bot_management.py @@ -6,7 +6,8 @@ class BotManager: def __init__(self, bot): self.bot = bot - @commands.command(name='claim', alaises=['makemine', 'gimme']) + @commands.command(name='claim', aliases=['makemine', 'gimme']) + @commands.cooldown(1, 5, commands.BucketType.user) async def _claim_bot(self, ctx, bot: discord.Member=None, prefix: str=None): if not bot.bot: raise RuntimeError('You can only claim bots.') @@ -62,6 +63,7 @@ class BotManager: await ctx.send(embed=em) @commands.command(name='unclaim') + @commands.cooldown(1, 5, commands.BucketType.user) async def _unclaim_bot(self, ctx, bot: discord.Member=None): if not bot.bot: raise RuntimeError('You can only unclaim bots.')