1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 17:24:53 -07:00
parent 4daa35811a
commit c582fb6a9d

View file

@ -566,10 +566,7 @@ while True:
except Exception as ex: except Exception as ex:
irc.send_irc(channel, nick + ": " + ex.__class__.__name__) irc.send_irc(channel, nick + ": " + ex.__class__.__name__)
elif path.isdir("cc/" + command[0][1:]): elif path.isdir("cc/" + command[0][1:]):
irc.send_irc(channel, nick + ": Command list under cc/debug:") irc.send_irc(channel, nick + ": Command list under cc/debug: " + ", ".join(listdir("cc/" + command[0][1:])) + ".")
irc.send_irc(channel, ", ".join(listdir("cc/" + command[0][1:])) + ".")
else: else:
print(nick + ": Unrecognised command") print(nick + ": Unrecognised command")