Trixarian / Alia

A Pyborg fork with additional features
14 stars 8 forks source link

The bot crashes when i do a !responses #2

Closed Polsaker closed 11 years ago

Polsaker commented 11 years ago

jus that. here the output Reading dictionary... No zip found or file corrupt - Recreating... Error reading saves. New database created. Updating dictionary information... Connecting to server... Traceback (most recent call last): File "pyborg-irc.py", line 556, in bot.our_start() File "pyborg-irc.py", line 162, in our_start self.start() File "/home/mrx/alia/ircbot.py", line 253, in start SimpleIRCClient.start(self) File "/home/mrx/alia/irclib.py", line 1107, in start self.ircobj.process_forever() File "/home/mrx/alia/irclib.py", line 233, in process_forever self.process_once(timeout) File "/home/mrx/alia/irclib.py", line 218, in process_once self.process_data(i) File "/home/mrx/alia/irclib.py", line 187, in process_data c.process_data() File "/home/mrx/alia/irclib.py", line 572, in process_data self._handle_event(Event(command, prefix, target, [m])) File "/home/mrx/alia/irclib.py", line 599, in _handle_event self.irclibobj._handle_event(self, event) File "/home/mrx/alia/irclib.py", line 331, in _handle_event if handler[1](connection, event) == "NO MORE": File "/home/mrx/alia/irclib.py", line 1046, in _dispatcher getattr(self, m)(c, e) File "pyborg-irc.py", line 210, in on_pubmsg self.on_msg(c, e) File "pyborg-irc.py", line 310, in on_msg self.pyborg.process_msg(self, body, replyrate, learn, (body, source, target, c, e), 1, not_quiet) File "/home/mrx/alia/pyborg.py", line 533, in process_msg self.do_commands(io_module, body, args, owner) File "/home/mrx/alia/pyborg.py", line 677, in do_commands elif rcount == 1: msg = "I've learned only 1 response" % rcount TypeError: not all arguments converted during string formatting

Trixarian commented 11 years ago

Fixed with ce64b3f