MCPcopy Create free account
hub / github.com/VJBots/VJ-File-Store / restart_bots

Function restart_bots

plugins/clone.py:76–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74# Ask Doubt on telegram @KingVJ01
75
76async def restart_bots():
77 bots = list(mongo_db.bots.find())
78 for bot in bots:
79 bot_token = bot['token']
80 try:
81 vj = Client(
82 f"{bot_token}", API_ID, API_HASH,
83 bot_token=bot_token,
84 plugins={"root": "clone_plugins"},
85 )
86 await vj.start()
87 except:
88 pass

Callers 1

startFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected