Fix DOCKER_MAP
This commit is contained in:
3
main.py
3
main.py
@@ -25,7 +25,8 @@ async def notify_start():
|
||||
|
||||
|
||||
async def main():
|
||||
state.DOCKER_MAP = await discover_containers(cfg)
|
||||
state.DOCKER_MAP.clear()
|
||||
state.DOCKER_MAP.update(await discover_containers(cfg))
|
||||
if cfg.get("docker", {}).get("watchdog", True):
|
||||
asyncio.create_task(docker_watchdog(state.DOCKER_MAP, notify, bot, ADMIN_ID))
|
||||
await notify_start()
|
||||
|
||||
Reference in New Issue
Block a user