You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for pointing this out. That code example was probably written without testing when I was writing the working draft. 😅
The input checks had to be flipped in a different order (<input4> first):
+ <input1>
* <input1> eq <input4> => That's it. I'm done talking to you.{topic=blocked}
* <input1> eq <input3> => If you repeat yourself again I'll stop talking to you.
* <input1> eq <input2> => That's the second time you've repeated yourself.
- Please don't repeat yourself.
> topic blocked
// NOTE: "<noreply>" is handled in your bot's code, to not
// show a reply to the user; it isn't a RiveScript tag.
+ *
- <noreply>
+ sorry
- {topic=random}Ok I'll forgive you.
< topic
Also, the <noreply> tag is now officially guaranteed to never be used by RiveScript; in my chatbots I've always returned a literal <noreply> string to my program so it would know not to deliver a response back to my message. That use case comes in handy sometimes!
(the Playground site doesn't handle <noreply> tags yet and tries to show it as literal HTML and you get an empty response bubble)
While developing Rivescript-php I noticed a bug in the working draft document for Rivescript.
Here is the script:
All lines past are unreachable.
Fix:
Update document accordingly.
The text was updated successfully, but these errors were encountered: