Update sweebot.py
This commit is contained in:
parent
a862f647f4
commit
229d7ac05a
1 changed files with 1 additions and 3 deletions
|
@ -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 != "":
|
||||||
|
|
Loading…
Reference in a new issue