Added the client ID to the returned object when getting online bots
This commit is contained in:
@@ -120,6 +120,6 @@ async def get_online_bots():
|
|||||||
active_bots = []
|
active_bots = []
|
||||||
for client in current_app.active_clients:
|
for client in current_app.active_clients:
|
||||||
if current_app.active_clients[client].active_token:
|
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)
|
return jsonify(active_bots)
|
||||||
Reference in New Issue
Block a user