From d1813856d91ec4ec0c1c8047bb7002826d9e3754 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:54:14 +0100 Subject: [PATCH] Imported callback "nothing" --- poster.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poster.py b/poster.py index 125450a..6e94d9d 100644 --- a/poster.py +++ b/poster.py @@ -119,6 +119,7 @@ pid = getpid() from plugins.commands.general import * if configGet("submit", "mode"): + from plugins.callbacks.nothing import * from plugins.callbacks.submission import * from plugins.commands.mode_submit import * from plugins.handlers.submission import * @@ -174,7 +175,7 @@ if __name__ == "__main__": app.start() 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"): scheduler.start() @@ -186,7 +187,7 @@ if __name__ == "__main__": 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))) killProc(pid) \ No newline at end of file