From fc32a0e61388ef24c15dbf4a765ca4f8b502f3a1 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 2 Jun 2020 12:56:44 +0100 Subject: [PATCH] Trying to get cooldown timer working test --- EnsoBot.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/EnsoBot.py b/EnsoBot.py index 3671887f..497babd3 100644 --- a/EnsoBot.py +++ b/EnsoBot.py @@ -18,9 +18,9 @@ async def best(message): # we do not want the bot to reply to itself if message.author == client.user: return - if message.content.startswith('!best'): - myid = '<@154840866496839680>' - await client.send_message(message.channel, ' : %s is the best ' % myid) + + myid = '<@154840866496839680>' + await client.send_message(message.channel, ' : %s is the best ' % myid) # Bot ~Ping command in milliseconds @@ -164,11 +164,5 @@ async def on_command_error(ctx, error): if isinstance(error, commands.CommandOnCooldown): await ctx.send(f'That command is on cooldown. Try again in {error.retry_after:,.2f} seconds.') -#Bot Event for handling missing requirements error -@client.event -async def on_command_error(ctx, error): - if isinstance(error, commands.MissingRequiredArgument): - await ctx.send('Please input the correct amount of arguments') - client.run('NzE2NzAxNjk5MTQ1NzI4MDk0.XtWFiw.KZrh9Tkp9vTY9JYSgZfpg2P4mlQ')