reverting

This commit is contained in:
unknown committed 2019-11-01 16:59:41 -04:00
1 parent 02f276d165
commit 49597714cd
1 file changed
+1 -1
+1 -1
View File
@@ -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: