Update sweebot.py
All checks were successful
Check syntax / check (push) Successful in 8s

This commit is contained in:
Nova Cat 2024-12-28 18:33:55 -08:00
parent eb8e8e4aed
commit 7578acff90

View file

@ -471,8 +471,7 @@ while True:
ossystem("git fetch") ossystem("git fetch")
ossystem("git pull") ossystem("git pull")
irc.send_irc(channel, nick + ": Pulled from Git, restarting bot...") irc.send_irc(channel, nick + ": Pulled from Git, restarting bot...")
sleep(1) restart()
ossystem("sudo systemctl restart sweebot")
else: else:
irc.send_irc(channel, nick + ": Permission denied.") irc.send_irc(channel, nick + ": Permission denied.")
block+=1 block+=1