rivescript-js
rivescript-js copied to clipboard
<get VARIABLE> in triggers
When there is a <get VARIABLE> in the trigger, it seems to trigger even when the VARIABLE is actually undefined.
So when we are using something like this:
+ [*] <get foo> [*]
It seems to trigger sometimes even if the input text is something like That is ok. I think it should only be able to trigger if the variable is not undefined.
Yes I'm affected by this as well
To clarify, your trigger would match a message that has the word "undefined" in it somewhere? Or does it match other messages too?
It matches other messages as well
Do you have a reproduceable test case? I did some poking at it here: https://play.rivescript.com/s/lYwwtWuvri and couldn't get it to match messages that I wasn't expecting it to:
