From 607f0b4594a41350acddc83b72bb54d14a9342b0 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 24 May 2025 23:12:30 -0400 Subject: [PATCH] convert the guild ID strings to ints to check in bot response --- app/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client.py b/app/client.py index 6781d8f..f59e541 100644 --- a/app/client.py +++ b/app/client.py @@ -59,7 +59,7 @@ async def join_server(system_id, guild_id, channel_id): # 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']: + if 'connected_guilds' not in bot_status or int(guild_id) not in bot_status['connected_guilds']: # Join the server await drb_api.join_voice_channel(guild_id, channel_id) # Update status @@ -108,7 +108,7 @@ async def leave_server(guild_id): return # Check if the bot is in the guild - if not "connected_guilds" in bot_status or guild_id not in bot_status['connected_guilds']: + if not "connected_guilds" in bot_status or int(guild_id) not in bot_status['connected_guilds']: return # Leave the server specified