From 7578acff90ce622674c955c680121cde3eaee38f Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 18:33:55 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index 57dc810..9284771 100644 --- a/sweebot.py +++ b/sweebot.py @@ -471,8 +471,7 @@ while True: ossystem("git fetch") ossystem("git pull") irc.send_irc(channel, nick + ": Pulled from Git, restarting bot...") - sleep(1) - ossystem("sudo systemctl restart sweebot") + restart() else: irc.send_irc(channel, nick + ": Permission denied.") block+=1