From 74e66eb7960907cdb56d229d7aa907aff494351c Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 23 Feb 2025 20:37:40 -0500 Subject: [PATCH] Linting --- app/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/bot.py b/app/bot.py index 300e538..cf379db 100644 --- a/app/bot.py +++ b/app/bot.py @@ -59,7 +59,7 @@ class DiscordBotManager: try: leave_voice_channel(guild_id) except Exception as e: - LOGGER.warning(f"Error to leave voice channel", e) + LOGGER.warning(f"Error leaving voice channel: '{e}'") # Attempt to reconnect to the channel after a brief pause await asyncio.sleep(2) await self.join_voice_channel(guild_id, before.channel.id) @@ -116,6 +116,7 @@ class DiscordBotManager: del self.voice_clients[guild_id] LOGGER.info(f"Left guild {guild_id} voice channel.") + # Initialize Discord Bot Manager bot_manager = DiscordBotManager()