1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-09-22 14:11:53 -07:00
parent 7ac14ddb67
commit a862f647f4

View file

@ -250,11 +250,14 @@ while True:
run-=1 run-=1
update() update()
else: else:
if path.isfile(cwd + "/helps/" + " ".join(command[1:])): try:
output = open(cwd + "/helps/" + " ".join(command[1:])).read() if path.isfile(cwd + "/helps/" + " ".join(command[1:])):
multiline(output) output = open(cwd + "/helps/" + " ".join(command[1:])).read()
else: multiline(output, channel)
irc.send_irc(channel, "Either the command isn't documented yet or it doesn't exist lol") else:
irc.send_irc(channel, "Either the command isn't documented yet or it doesn't exist lol")
except:
multiline(output, channel)
else: else:
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.")