Improved /shutdown

This commit is contained in:
Profitroll 2023-06-30 11:34:15 +02:00
parent bfec702bef
commit 28b5449f2a
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
1 changed files with 2 additions and 1 deletions

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())