Update the active token when a status update is requested

This commit is contained in:
Logan Cusano
2025-06-29 02:52:02 -04:00
parent 2e5f54a0f5
commit f2fa623f4e

View File

@@ -172,6 +172,12 @@ async def get_status(websocket, request_id):
client_status['discord_status'] = DiscordStatusValues.INVOICE
else:
client_status['discord_status'] = DiscordStatusValues.ONLINE
# Check if the active token was passed and update the global
if "active_token" in discord_status and discord_status['active_token']:
# Update the bot token
global bot_token
bot_token = discord_status['active_token']
# Return the status object
response_payload = {"status": client_status}