lib.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:bothub-cli 作者: bothub-studio 项目源码 文件源码
def test(self):
        self._load_auth()
        history = FileHistory('.history')

        project_id = self._get_current_project_id()
        bot = self._load_bot()

        while True:
            try:
                line = prompt('BotHub> ', history=history)
                if not line:
                    continue
                event = make_event(line)
                context = {}
                bot.handle_message(event, context)
            except (EOFError, KeyboardInterrupt):
                break
            except Exception:
                traceback.print_exc()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号