This commit is contained in:
@@ -59,7 +59,7 @@ class DiscordBotManager:
|
|||||||
try:
|
try:
|
||||||
leave_voice_channel(guild_id)
|
leave_voice_channel(guild_id)
|
||||||
except Exception as e:
|
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
|
# Attempt to reconnect to the channel after a brief pause
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
await self.join_voice_channel(guild_id, before.channel.id)
|
await self.join_voice_channel(guild_id, before.channel.id)
|
||||||
@@ -116,6 +116,7 @@ class DiscordBotManager:
|
|||||||
del self.voice_clients[guild_id]
|
del self.voice_clients[guild_id]
|
||||||
LOGGER.info(f"Left guild {guild_id} voice channel.")
|
LOGGER.info(f"Left guild {guild_id} voice channel.")
|
||||||
|
|
||||||
|
|
||||||
# Initialize Discord Bot Manager
|
# Initialize Discord Bot Manager
|
||||||
bot_manager = DiscordBotManager()
|
bot_manager = DiscordBotManager()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user