diff --git a/plugins/commands/general.py b/plugins/commands/general.py index 18a0357..a33182a 100644 --- a/plugins/commands/general.py +++ b/plugins/commands/general.py @@ -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())