From b611ff92ea69cc1ac6b82aa3f06b9d9675e86a82 Mon Sep 17 00:00:00 2001 From: sco1 Date: Wed, 24 Apr 2019 17:20:30 -0400 Subject: Relint Seasonalbot with new linting rules --- bot/bot.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'bot/bot.py') diff --git a/bot/bot.py b/bot/bot.py index f3b1acbb..24e919f2 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -25,7 +25,6 @@ class SeasonalBot(commands.Bot): def load_extensions(self, exts: List[str]): """Unload all current extensions, then load the given extensions.""" - # Unload all cogs extensions = list(self.extensions.keys()) for extension in extensions: @@ -43,7 +42,6 @@ class SeasonalBot(commands.Bot): async def send_log(self, title: str, details: str = None, *, icon: str = None): """Send an embed message to the devlog channel.""" - devlog = self.get_channel(constants.Channels.devlog) if not devlog: @@ -60,7 +58,6 @@ class SeasonalBot(commands.Bot): async def on_command_error(self, context, exception): """Check command errors for UserInputError and reset the cooldown if thrown.""" - if isinstance(exception, commands.UserInputError): context.command.reset_cooldown(context) else: -- cgit v1.2.3