|
|
@ -18,9 +18,9 @@ async def best(message):
|
|
|
|
# we do not want the bot to reply to itself
|
|
|
|
# we do not want the bot to reply to itself
|
|
|
|
if message.author == client.user:
|
|
|
|
if message.author == client.user:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
if message.content.startswith('!best'):
|
|
|
|
|
|
|
|
myid = '<@154840866496839680>'
|
|
|
|
myid = '<@154840866496839680>'
|
|
|
|
await client.send_message(message.channel, ' : %s is the best ' % myid)
|
|
|
|
await client.send_message(message.channel, ' : %s is the best ' % myid)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Bot ~Ping command in milliseconds
|
|
|
|
# Bot ~Ping command in milliseconds
|
|
|
@ -164,11 +164,5 @@ async def on_command_error(ctx, error):
|
|
|
|
if isinstance(error, commands.CommandOnCooldown):
|
|
|
|
if isinstance(error, commands.CommandOnCooldown):
|
|
|
|
await ctx.send(f'That command is on cooldown. Try again in {error.retry_after:,.2f} seconds.')
|
|
|
|
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')
|
|
|
|
client.run('NzE2NzAxNjk5MTQ1NzI4MDk0.XtWFiw.KZrh9Tkp9vTY9JYSgZfpg2P4mlQ')
|
|
|
|