Update bot presence when joining discord as well as when starting OP25 (through join command)

This commit is contained in:
Logan Cusano
2025-06-29 20:52:01 -04:00
parent ef8045559c
commit 7802a4a865

View File

@@ -87,6 +87,8 @@ async def join_server(websocket, system_id, guild_id, channel_id):
print("Bot token:", bot_token)
# Run the bot if not
await drb_api.start_bot(bot_token)
# Set the presence of the bot
await drb_api.update_bot_presence()
# Check if the bot is connected to the guild, if not join
if 'connected_guilds' not in bot_status or int(guild_id) not in bot_status['connected_guilds']:
# Join the server