Improved /shutdown

This commit is contained in:
2023-06-30 11:34:15 +02:00
parent bfec702bef
commit 28b5449f2a

View File

@@ -1,3 +1,4 @@
import asyncio
from os import makedirs
from pathlib import Path
from time import time
@@ -44,4 +45,4 @@ async def cmd_kill(app: PyroClient, msg: Message):
Path(f"{app.config['locations']['cache']}/shutdown_time"),
)
exit()
asyncio.get_event_loop().create_task(app.stop())