dont know
This commit is contained in:
1 parent
8e2fa540cc
commit
7bc0506ab3
1 file changed
+2
-4
+2
-4
@@ -39,16 +39,14 @@ hassapi = remote.API(HASS_IP_ADDRESS, HASS_API_KEY)
|
||||
@bot.event
|
||||
async def on_command_error(error, ctx):
|
||||
if isinstance(error, commands.CommandOnCooldown):
|
||||
await ctx.send(f"{ctx.message.author.display_name} - This command is ratelimited, please try again in {error.retry_after}")
|
||||
#msg = 'This command is ratelimited, please try again in {:.2f}s'.format(error.retry_after)
|
||||
#await client.send_message(ctx.message.channel, msg)
|
||||
msg = 'This command is ratelimited, please try again in {:.2f}s'.format(error.retry_after)
|
||||
await bot.send_message(ctx.message.channel, msg)
|
||||
else:
|
||||
print('Oopsie, I found an error...')
|
||||
print('Channel:')
|
||||
print(ctx)
|
||||
print('Error:')
|
||||
print(error)
|
||||
await bot.send_message(ctx.message.channel, error)
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
|
||||
Reference in new issue
Block a user