From f2fa623f4e9b10a6fc66abfaea3955f478b9ed78 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 29 Jun 2025 02:52:02 -0400 Subject: [PATCH] Update the active token when a status update is requested --- app/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/client.py b/app/client.py index 86d33e6..9b0347f 100644 --- a/app/client.py +++ b/app/client.py @@ -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}