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}