def reply(self, msg): last_color = "" for s in self.split_long_msg(msg, limit=100): minqlbot.send_command('{} "{}{}"'.format(self.command, last_color, s)) find = re_color_tag.findall(s) if find: last_color = find[-1]
def send_command(self, cmd): """minqlbot.send_command is a C++ function, so we wrap it for Python debugging purposes. """ #self.debug("=> " + cmd, only_debug=True) minqlbot.send_command(cmd)
def send_command(cls, cmd): """minqlbot.send_command is a C++ function, so we wrap it for Python debugging purposes. """ minqlbot.send_command(cmd)