Fixed logic of getting the online bots
This commit is contained in:
@@ -119,6 +119,7 @@ async def leave():
|
||||
async def get_online_bots():
|
||||
active_bots = []
|
||||
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)
|
||||
Reference in New Issue
Block a user