ahmadfaizalbh / ahmadfaizalbh/Chatbot

conditional Chatbot response

未关闭
#78 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
866
派生
357
PR 合并指标
30 天内没有已合并 PR

描述

Hi ! I'm trying to work with your Chatbot and I was wondering if there is a posibility to only make the Bot answering under a certain condition. I tried it with following template but it didn't work:

{% block %}
{% client %}(?P.*){% endclient %}
{% if {% call Myfuncion:%query%} %}
{% response %}My answer.{% endresponse %}
{% endif %}
{% endblock %}

The funcion Myfuncion returns True / False depending on the client's query.
Thank you in advance for your help!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。