Imported callback "nothing"

This commit is contained in:
Profitroll 2023-02-17 21:54:14 +01:00
parent cf204577e4
commit d1813856d9

View File

@ -119,6 +119,7 @@ pid = getpid()
from plugins.commands.general import * from plugins.commands.general import *
if configGet("submit", "mode"): if configGet("submit", "mode"):
from plugins.callbacks.nothing import *
from plugins.callbacks.submission import * from plugins.callbacks.submission import *
from plugins.commands.mode_submit import * from plugins.commands.mode_submit import *
from plugins.handlers.submission import * from plugins.handlers.submission import *
@ -174,7 +175,7 @@ if __name__ == "__main__":
app.start() app.start()
if configGet("startup", "reports"): if configGet("startup", "reports"):
app.send_message(configGet("admin"), locale("startup", "message", locale=configGet("locale")).format(str(pid))) app.send_message(app.owner, locale("startup", "message", locale=configGet("locale")).format(str(pid)))
if configGet("post", "mode"): if configGet("post", "mode"):
scheduler.start() scheduler.start()
@ -186,7 +187,7 @@ if __name__ == "__main__":
idle() idle()
app.send_message(configGet("admin"), locale("shutdown", "message", locale=configGet("locale")).format(str(pid))) app.send_message(app.owner, locale("shutdown", "message", locale=configGet("locale")).format(str(pid)))
logWrite(locale("shutdown", "console", locale=configGet("locale")).format(str(pid))) logWrite(locale("shutdown", "console", locale=configGet("locale")).format(str(pid)))
killProc(pid) killProc(pid)