From 19c0bd2ef8799afdac39eae4a872ef5f7d15630e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Apr 2025 03:01:54 -0400 Subject: [PATCH] Add join voice and closing prints --- app/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/client.py b/app/client.py index c80542a..5bdc686 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']) + # Join the server + await drb_api.join_voice_channel(guild_id, channel_id) # Update status client_status = StatusValues.LISTENING op25_status = await drb_api.get_op25_status() @@ -83,6 +85,8 @@ async def join_server(system_id, guild_id, channel_id): # Start OP25 await drb_api.start_op25() + + print("Join server completed") # Leave server @command @@ -106,6 +110,8 @@ async def leave_server(guild_id): # Update status client_status = StatusValues.ONLINE + print("Leave server completed") + @command async def set_status(status_text): """Example command: Sets or displays a status."""