':type bot: smart_qq_bot.bot.QQBot'

def __init__(self, bot, workers=5):

    if (not isinstance(bot, QQBot)):
        raise MsgProxyNotImplementError('bot    should    be    instance    of    QQBot')
    self.bot = bot
    self.handler_queue = Queue()
    self.workers = [Worker(self.handler_queue) for i in range(workers)]
    for worker in self.workers:
        worker.setDaemon(True)
        worker.start()
