diff --git a/helps/pull b/helps/pull new file mode 100644 index 0000000..999cd0c --- /dev/null +++ b/helps/pull @@ -0,0 +1 @@ +Pulls the latest version of sweeBot from its Git repository, requires the "git" permissions \ No newline at end of file diff --git a/sweebot.py b/sweebot.py index d73fe09..25fec71 100644 --- a/sweebot.py +++ b/sweebot.py @@ -293,7 +293,7 @@ while True: update() 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 pull") irc.send_irc(channel, nick + ": Pulled from Git, restarting bot...")