Пример #1
0
 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]
Пример #2
0
 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]
Пример #3
0
    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)
Пример #4
0
    def send_command(cls, cmd):
        """minqlbot.send_command is a C++ function, so we wrap it for Python debugging purposes.

        """
        minqlbot.send_command(cmd)
Пример #5
0
    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)
Пример #6
0
    def send_command(cls, cmd):
        """minqlbot.send_command is a C++ function, so we wrap it for Python debugging purposes.

        """
        minqlbot.send_command(cmd)