Added the client ID to the returned object when getting online bots

This commit is contained in:
Logan Cusano
2025-05-24 23:30:46 -04:00
parent 3806c7bcdd
commit 8c6cf5683a

View File

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