keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
350 stars 135 forks source link

self-defined template tag might affect the content returned in console mode #164

Closed utuxmt closed 6 years ago

utuxmt commented 6 years ago

I ran a aiml file with script provided in y-bot.sh. The aiml file is as followed aiml The aiml file contains 2 self-defined template tags: 'myTag1' and 'myTag2'. Then I test the aiml file with 3 patterns: command1, command2, and command3

Expected Behavior

With the given pattern, the expected behavior is to return the whole block content in template tag respectively.

Current Behavior

Only part of the block content is returned with the pattern command1, However, with command2 and command3, the whole block content is received. The result is as followed result

Looks like the relative position of the self-defined tag in aiml file might affect the content returned.

Context (Environment)

Version of Y-Bot: just cloned from y-bot repo. Version of Python: Python 3.6.5 OS: Ubuntu 18.04

Edited: Things go normal if I run the aiml file with y-bot-sanic-rest.sh.

keiffster commented 6 years ago

This is now fixed in v3 and will ship shortly