RiveScript is a scripting language for chatterbots, making it easy to write trigger/response pairs for building up a bot's intelligence.
npm install rivescript
This is a RiveScript interpreter library for JavaScript. RiveScript is a
scripting language for chatterbots, making it easy to write trigger/response
pairs for building up a bot's intelligence.
This library can be used both in a web browser or as a Node module.
See the eg/ folder for examples.
RiveScript v2.0.0 comes with a massive refactor of the codebase to
implement modern Async/Await features all throughout. The refactor now
allows features like "storing user variables directly in Redis" or
"using asynchronous macros in conditionals"
But it necessarily had to break some backwards compatibility -- slightly!
-- by turning previously synchronous functions like reply() into
async ones that return Promises like replyAsync() did.
See the Upgrading-v2 document for information on the changes
and how to fix your code for the new version.
For nodejs and other similar JavaScript engines, you can install this module in your project through npm:
``bash`
$ npm install rivescript
For the web you can use the unpkg:
`html`
The git repository for this project includes ES2015+ source code. For
ES5 builds targeting older browsers and Node versions, check the
Releases tab. The compiled
distribution includes a lib/ directory with ES5 sources to use withdist/
node <= 6, and a directory containing a "browserified" script that can be
used on a web page.
To use on the web, just load dist/rivescript.min.js with a