From 16f2917489d6b1aba87bcaf65538181b04577bda Mon Sep 17 00:00:00 2001 From: Raatty Date: Mon, 8 Oct 2018 16:54:08 +1300 Subject: [PATCH] catch cooldown --- bot.py | 1 + drpg.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/bot.py b/bot.py index 0a8091a..83e151b 100644 --- a/bot.py +++ b/bot.py @@ -54,6 +54,7 @@ async def help(ctx): "heal. Stats messages will also be scanned currently you " "will only get info about your weapon.\n\n" "**Currently implemented cooldowns:**\n" + " __10 seconds:__ {0}catch\n" " __14 seconds:__ {0}adv\n" " __300 seconds:__ {0}mine, {0}chop, {0}fish, {0}forage\n" " __600 seconds:__ {0}search\n" diff --git a/drpg.py b/drpg.py index be9473a..453d3a3 100644 --- a/drpg.py +++ b/drpg.py @@ -43,6 +43,12 @@ class drpg: await asyncio.sleep(600) await self.bot.say(f'🔍 {ctx.message.author.mention} you can ' f'**{ctx.prefix}search** again') + + @commands.command(pass_context=True) + async def catch(self, ctx): + await asyncio.sleep(10) + await self.bot.say(f'🐥 {ctx.message.author.mention} you can ' + f'**{ctx.prefix}catch** again') async def on_message(self, message: discord.Message): if message.author.id == '170915625722576896':