Removed legacy, fixed some bugs, improved spoilers #6

Merged
profitroll merged 9 commits from dev into master 2023-01-05 16:49:35 +02:00
Showing only changes of commit 6e44177907 - Show all commits

View File

@ -1,4 +1,5 @@
from os import getpid, makedirs from os import getpid, makedirs
from time import time
from modules.utils import * from modules.utils import *
from modules.inline import * from modules.inline import *
from app import app from app import app
@ -77,5 +78,8 @@ if __name__ == "__main__":
logWrite(f"Could not send shutdown message to bot owner. Perhaps user has not started the bot yet.") logWrite(f"Could not send shutdown message to bot owner. Perhaps user has not started the bot yet.")
app.stop() app.stop()
makedirs(configGet("cache", "locations"), exist_ok=True)
jsonSave({"timestamp": time()}, path.join(configGet("cache", "locations"), "shutdown_time"))
killProc(pid) killProc(pid)