From 7bc0506ab3d031053b777eb0e63e4617b64ff4ea Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Nov 2019 16:54:54 -0400 Subject: [PATCH] dont know --- r0b3bot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/r0b3bot.py b/r0b3bot.py index fb65bb9..b7e4332 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -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():