add pull command
This commit is contained in:
parent
4a45689c05
commit
7ac14ddb67
2 changed files with 2 additions and 1 deletions
1
helps/pull
Normal file
1
helps/pull
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Pulls the latest version of sweeBot from its Git repository, requires the "git" permissions
|
|
@ -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...")
|
||||||
|
|
Loading…
Reference in a new issue