From 52965f2a30be762823aaf123db20a5e979d82a2b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 2 May 2025 23:52:55 -0400 Subject: [PATCH] Update joining logic when the bot is already running --- app/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/client.py b/app/client.py index 5bdc686..69b3e03 100644 --- a/app/client.py +++ b/app/client.py @@ -54,6 +54,8 @@ async def join_server(system_id, guild_id, channel_id): raise Exception("No bot token received") # TODO - Handle this better # Run the bot if not await drb_api.start_bot(bot_token['token']) + # Check if the bot is connected to the guild, if not join + if 'connected_guilds' not in bot_status or guild_id not in bot_status['connected_guilds']: # Join the server await drb_api.join_voice_channel(guild_id, channel_id) # Update status