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