Trying to get cooldown timer working test

testing
sgoudham 5 years ago
parent 4637bd4ed8
commit fc32a0e613

@ -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')

Loading…
Cancel
Save