main.py 文件源码

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

项目:ConsensusBot 作者: hanveiga 项目源码 文件源码
def intent_extractor(bot, update):
    """
    :param bot:
    :param update:
    :return: Parses the intent and calls the appropriate callback
    """
    intent = intent_parser.extract_intent(update.message.text)
    global state
    feedback, give_reply, state = gf.give_feedback(intent,state)
    if give_reply:
        bot.sendMessage(update.message.chat_id, text=feedback)

    if state.value < States.FINALIZING.value:
        process_callback[intent](bot,update)
    else:
        finalize_schedule(bot,update)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号