Moved to async

This commit is contained in:
2023-01-10 13:06:24 +01:00
parent 6facf428c5
commit c4323f0b00
8 changed files with 66 additions and 51 deletions

View File

@@ -114,8 +114,7 @@ pid = getpid()
# check_forwards(app)
# Imports =====================================================================================================================================
# Imports ==================================================================================================================================
from modules.commands.general import *
from modules.commands_register import register_commands
@@ -141,14 +140,13 @@ if __name__ == "__main__":
logWrite(locale("startup", "console", locale=configGet("locale")).format(str(pid)))
app.start()
if configGet("startup", "reports"):
app.send_message(configGet("admin"), locale("startup", "message", locale=configGet("locale")).format(str(pid)))
if configGet("post", "mode"):
scheduler.start()
register_commands(app)
idle()
app.send_message(configGet("admin"), locale("shutdown", "message", locale=configGet("locale")).format(str(pid)))