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
Accessing current trigger/topic or calling object macro in conditional #107
Comments
I actually look for a way to do the following :
I want the user to be able to "quit" the current topic to the random one, no matter what previous bot reply is. With the previous example, the user would trigger "trigger1" then if he triggers "quit", he is redirected to the random topic instead of being replied with "reply2". |
Is it there a way to perform the following :
|
That should work but you're missing the
You can do |
I can't get object macro calls to work with conditionals (WITH the closing tag :) )
checkEmailFormat is never called and RS always replies with "right format" (I double checked the "checkEmailFormat" function and it works properly) |
I verified the issue. This used to work, when
So I have PR #111 open to fix this, but need to make sure it doesn't cause any other bugs (asynchronous object macros most likely won't work in conditions, because RiveScript needs the answer "now" to see if the condition is true or not). |
Is there a way to access current trigger and current topic values in a conditional test ?
What about calling an object macros in a conditional?
The text was updated successfully, but these errors were encountered: