diff --git a/r0b3bot.py b/r0b3bot.py index fe0669e..5b7b428 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -38,7 +38,7 @@ hassapi = remote.API(HASS_IP_ADDRESS, HASS_API_KEY) @bot.event async def on_command_error(error, ctx): - 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: