fix missing arguments to send()

This commit is contained in:
= 2025-04-04 03:34:38 +00:00
parent 16ac10d49a
commit 84f53b56ae

6
bot.py

@ -143,18 +143,18 @@ class IRCBot():
message_body = ""
if message_body:
if message_body.startswith("!rollcall"):
self.send(helptext)
self.send(channel, helptext)
continue
elif message_body.startswith("!chatterbot"):
arguments = message_body.strip().lower()[11:]
if not arguments:
self.send(helptext)
self.send(channel, helptext)
continue
arguments = arguments.split()
for command, callback in self.commands:
if command not in arguments:
continue
self.send(callback(channel, arguments[1:]))
self.send(channel, callback(channel, arguments[1:]))
else:
if channel in ("#tildetown", "#bots"):
continue