1
0
Fork 0
forked from swee/MeowNex

add pull command

This commit is contained in:
Swee 2024-09-22 14:00:59 -07:00
parent 4a45689c05
commit 7ac14ddb67
2 changed files with 2 additions and 1 deletions

1
helps/pull Normal file
View file

@ -0,0 +1 @@
Pulls the latest version of sweeBot from its Git repository, requires the "git" permissions

View file

@ -293,7 +293,7 @@ while True:
update() update()
elif command[0] == "$pull": elif command[0] == "$pull":
if perms == "full" or "reboot" in perms.split(",") or "restart" in perms.split(","): if perms == "full" or "git" in perms.split(","):
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...")