Fixed logic of getting the online bots

This commit is contained in:
Logan Cusano
2025-05-24 23:28:25 -04:00
parent 4a61bd195f
commit 3806c7bcdd

View File

@@ -119,6 +119,7 @@ async def leave():
async def get_online_bots(): async def get_online_bots():
active_bots = [] active_bots = []
for client in current_app.active_clients: for client in current_app.active_clients:
active_bots.append(client.active_token.to_dict()) if current_app.active_clients[client].active_token:
active_bots.append(current_app.active_clients[client].active_token.to_dict())
return jsonify(active_bots) return jsonify(active_bots)