From f7ff3e58221278afea370ba33aaa4245dbce058a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Nov 2019 18:55:41 -0400 Subject: [PATCH] trying this --- r0b3bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r0b3bot.py b/r0b3bot.py index 59d405a..ae7410f 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -15,7 +15,7 @@ from discord import FFmpegPCMAudio from discord.utils import get from discord.voice_client import VoiceClient -bot = commands.Bot(command_prefix='$', description='A Super-Awesome Bot, for fun people') +bot = commands.Bot(command_prefix='$', description='A Derpy Derp of a bot') config = configparser.RawConfigParser() configFilePath = r'bot_config.conf' @@ -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, commands.CommandOnCooldown): + if isinstance(error, discord.ext.commands.errors.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: