Add join voice and closing prints

This commit is contained in:
Logan Cusano
2025-04-27 03:01:54 -04:00
parent 021a1541cc
commit 19c0bd2ef8

View File

@@ -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."""