rivescript-js icon indicating copy to clipboard operation
rivescript-js copied to clipboard

<get VARIABLE> in triggers

Open n1t0 opened this issue 8 years ago • 4 comments
trafficstars

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.

n1t0 avatar Mar 06 '17 19:03 n1t0

Yes I'm affected by this as well

julien-c avatar Mar 06 '17 19:03 julien-c

To clarify, your trigger would match a message that has the word "undefined" in it somewhere? Or does it match other messages too?

kirsle avatar Mar 06 '17 19:03 kirsle

It matches other messages as well

julien-c avatar Mar 06 '17 19:03 julien-c

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:

screenshot from 2017-03-06 11-55-38

kirsle avatar Mar 06 '17 19:03 kirsle