From 55bb9bef0f221c2fdeadbcc00a32e696c2dcedf8 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Nov 2019 19:14:06 -0400 Subject: [PATCH] change --- r0b3bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index 319721f..97c437f 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -39,7 +39,7 @@ hassapi = remote.API(HASS_IP_ADDRESS, HASS_API_KEY) @bot.event async def on_command_error(error, ctx): print(error) - if isinstance(error, CommandOnCooldown): + if isinstance(error, commands.CommandOnCooldown): msg = 'This command is ratelimited, please try again in {:.2f}s'.format(error.retry_after) await bot.send_message(ctx.message.channel, msg) else: