Moved to async
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user