Improved /shutdown
This commit is contained in:
parent
bfec702bef
commit
28b5449f2a
@ -1,3 +1,4 @@
|
|||||||
|
import asyncio
|
||||||
from os import makedirs
|
from os import makedirs
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from time import time
|
from time import time
|
||||||
@ -44,4 +45,4 @@ async def cmd_kill(app: PyroClient, msg: Message):
|
|||||||
Path(f"{app.config['locations']['cache']}/shutdown_time"),
|
Path(f"{app.config['locations']['cache']}/shutdown_time"),
|
||||||
)
|
)
|
||||||
|
|
||||||
exit()
|
asyncio.get_event_loop().create_task(app.stop())
|
||||||
|
Reference in New Issue
Block a user