-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something very strange happened #178
Comments
That's interesting and I think I know exactly why. In #78 (and related fixes in #83), the Because these "temporary"
I'd expect it to be reproduceable on both environments, are they running the same versions of rivescript-js? The fix for this will probably be to fix these regexps to be case insensitive (it looks from the source that the However, the underlying thing the code was trying to do in the first place wouldn't work with the output of the object macro. The uppercasing would be done before the object macro resolves and is substituted into the reply, so the actual text returned by the macro would still be its original case (any other text in the reply outside the That example RiveScript code works as expected on all the other versions, and on JS without I'll get this one fixed for v1.17.0 |
Thanks for the detailed explanation, I really appreciate your attention and commitment with RiveScript. Yeah all that async world is kinda strange for me. I'll wait for the v1.17.0, by now I'll just think another way to make bot appear more angry. XD
That one is Node That one is Running from the Web As you can see, same version, but that one in Node isn't async. I forgot to say a thing, I communicate my async web interpreter with a node interpreter using rest, and I pair the variables to keep things working, also I got a file for every username, using one of the persistance examples of the project. Basicly I have only the necessary and minimal replies in the web end, and a wildcard will call a reply from the node server everytime user types or say something that do not include in this minimal web set. In that server there is more complicated triggers that feed web end, and other interactions vectors. Because of that nature I had to use async and deal with promises, I don't know if that kind of error occurs only if the bot is async, or because of something more. The fact is that I use in the web something like:
Keep up the awesome work! |
I just followed that example:
But when the bot get "angry", he start to repeat everything I say with strange things around it.
I'm using a async Bot.
This only happens in the web js interpreter, with node, everything happens normally.
The text was updated successfully, but these errors were encountered: