Skip to content

Commit

Permalink
Update stream_routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Itz-JEOL authored Apr 15, 2023
1 parent 9d2012d commit 1b330c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Adarsh/server/stream_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@

@routes.get("/", allow_head=True)
async def root_route_handler(_):
return web.json_response(
{
"server_status": "running",
"uptime": get_readable_time(time.time() - StartTime),
"telegram_bot": "@" + StreamBot.username,
"connected_bots": len(multi_clients),
"loads": dict(
("bot" + str(c + 1), l)
for c, (_, l) in enumerate(
sorted(work_loads.items(), key=lambda x: x[1], reverse=True)
)
),
"version": __version__,
}
)



Expand Down

0 comments on commit 1b330c4

Please sign in to comment.