Update sweebot.py

This commit is contained in:
Swee 2024-09-22 14:22:26 -07:00
parent a862f647f4
commit 229d7ac05a

View file

@ -262,9 +262,7 @@ while True:
irc.send_irc(channel, "tip, ping, whoami, perms, version, figlet, tdfiglet, cowsay, uptime, cc, joke, botsnack. (restart, join, part, shell, config, pull.) Use '$help (command)' for explanation.") irc.send_irc(channel, "tip, ping, whoami, perms, version, figlet, tdfiglet, cowsay, uptime, cc, joke, botsnack. (restart, join, part, shell, config, pull.) Use '$help (command)' for explanation.")
elif command[0] == "$tip": elif command[0] == "$tip":
result = subprocess.run(['fortune'], stdout=subprocess.PIPE) system(["fortune"], channel)
output = result.stdout.decode('utf-8').split("\n")
multiline(output)
elif command[0] == "$whoami": elif command[0] == "$whoami":
if perms != "": if perms != "":