catch cooldown

This commit is contained in:
Raatty 2018-10-08 16:54:08 +13:00
parent a07e5fff0e
commit 16f2917489
2 changed files with 7 additions and 0 deletions

1
bot.py
View File

@ -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"

View File

@ -44,6 +44,12 @@ class drpg:
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':
if message.content.startswith('```diff\n!========['):