def handle_command(self, cmd, msg):
        """
        @brief      handle msg of `@yourself cmd`
        @param      cmd   String
        @param      msg   Dict
        """
        wechat = self.wechat
        g_id = ''
        for g in wechat.GroupList:
            if g['NickName'] == msg['group_name']:
                g_id = g['UserName']

        cmd = cmd.strip()
        if cmd == 'runtime':
            wechat.send_text(g_id, wechat.get_run_time())
        elif cmd == 'test_sendimg':
            wechat.send_img(g_id, 'test/emotion/7.gif')
        elif cmd == 'test_sendfile':
            wechat.send_file(g_id, 'test/Data/upload/shake.wav')
        elif cmd == 'test_bot':
            # reply bot
            # ---------
            if wechat.bot:
                r = wechat.bot.reply(cmd)
                if r:
                    wechat.send_text(g_id, r)
                else:
                    pass
        elif cmd == 'test_emot':
            img_name = [
                '0.jpg', '1.jpeg', '2.gif', '3.jpg', '4.jpeg',
                '5.gif', '6.gif', '7.gif', '8.jpg', '9.jpg'
            ]
            name = img_name[int(time.time()) % 10]
            emot_path = os.path.join('test/emotion/', name)
            wechat.send_emot(g_id, emot_path)
        else:
            pass

        @brief      handle msg of `@yourself cmd`
        @param      cmd   String
        @param      msg   Dict
        
wxbot_project_py2.7/wx_handler/wechat_msg_processor.py