catch cooldown
This commit is contained in:
parent
a07e5fff0e
commit
16f2917489
1
bot.py
1
bot.py
|
@ -54,6 +54,7 @@ async def help(ctx):
|
||||||
"heal. Stats messages will also be scanned currently you "
|
"heal. Stats messages will also be scanned currently you "
|
||||||
"will only get info about your weapon.\n\n"
|
"will only get info about your weapon.\n\n"
|
||||||
"**Currently implemented cooldowns:**\n"
|
"**Currently implemented cooldowns:**\n"
|
||||||
|
" __10 seconds:__ {0}catch\n"
|
||||||
" __14 seconds:__ {0}adv\n"
|
" __14 seconds:__ {0}adv\n"
|
||||||
" __300 seconds:__ {0}mine, {0}chop, {0}fish, {0}forage\n"
|
" __300 seconds:__ {0}mine, {0}chop, {0}fish, {0}forage\n"
|
||||||
" __600 seconds:__ {0}search\n"
|
" __600 seconds:__ {0}search\n"
|
||||||
|
|
6
drpg.py
6
drpg.py
|
@ -44,6 +44,12 @@ class drpg:
|
||||||
await self.bot.say(f'🔍 {ctx.message.author.mention} you can '
|
await self.bot.say(f'🔍 {ctx.message.author.mention} you can '
|
||||||
f'**{ctx.prefix}search** again')
|
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):
|
async def on_message(self, message: discord.Message):
|
||||||
if message.author.id == '170915625722576896':
|
if message.author.id == '170915625722576896':
|
||||||
if message.content.startswith('```diff\n!========['):
|
if message.content.startswith('```diff\n!========['):
|
||||||
|
|
Loading…
Reference in New Issue