feat(watcher): watched bots report capture uptime like the userbot
This commit is contained in:
1 parent
f62c345e2b
commit
7f7fc1296e
2 files changed
+21
-3
No files matched your search
@@ -113,6 +113,12 @@ class BotRegistry:
|
||||
def running(self) -> list[int]:
|
||||
return list(self._running)
|
||||
|
||||
@property
|
||||
def connected_accounts(self) -> list[int]:
|
||||
return [
|
||||
bot.account_id for bot in self._running.values() if bot.client.is_connected
|
||||
]
|
||||
|
||||
async def sync(self) -> None:
|
||||
async with self._lock:
|
||||
await self._adopt_dropped_in()
|
||||
|
||||
Reference in new issue
Block a user