aichaos / rivescript-js

A RiveScript interpreter for JavaScript. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
377 stars 145 forks source link

Replies not matched error #409

Open SinanDede opened 1 year ago

SinanDede commented 1 year ago

My rive file is like

! version  =2.0

+ some text
-  some text

But it returns replies not matched error

kirsle commented 1 year ago

It works for me: https://play.rivescript.com/s/IYbKJIQwcq

Verify that your program is loading your .rive file correctly, you might've given it a wrong filename or something. Give a debug:true parameter to the RiveScript() constructor and it should log a whole bunch of stuff about every line of code it reads and what it's doing with it, which might help to verify the file was loading correctly.

Also, be sure to call sortReplies() after you've loaded the rive file.