Update the active token when a status update is requested
This commit is contained in:
@@ -172,6 +172,12 @@ async def get_status(websocket, request_id):
|
|||||||
client_status['discord_status'] = DiscordStatusValues.INVOICE
|
client_status['discord_status'] = DiscordStatusValues.INVOICE
|
||||||
else:
|
else:
|
||||||
client_status['discord_status'] = DiscordStatusValues.ONLINE
|
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
|
# Return the status object
|
||||||
response_payload = {"status": client_status}
|
response_payload = {"status": client_status}
|
||||||
|
|||||||
Reference in New Issue
Block a user