This project was bootstrapped with Create React App.
RiveScript Tester is a client-side, ReactJS powered RiveScript editor and tester.
- Type some RiveScript on the left
- Interact with the RiveScript using a chat bot on the right
RiveScript is a scripting language that allows you to write code for chatbots. This tester was created to allow you to write and test RiveScript on-the-fly against a chatbot on the web, and download the script once you are happy with it.
- Javascript ES6
- ReactJS
- Create React App
- Material-UI
- Styled Components
- CodeMirror
- RiveScript-JS
- Upload and Download RiveScript .rs or .rive files
- Instant testing of script with bot interface
- Code editor experience
The easiest way is to visit the official website RiveScript Tester and have a play around.
A default script will load in the editor which can be run by clicking RUN and then typing a message to the bot in the ChatBot window. This will load the script into the Intepreter and compile it. You can see a detailed breakdown (debug) by viewing the console log. If the bot doesn't have a programmed response, it will respond with "ERR: No Reply Matched".
You can also upload your own scripts, and download the script in the editor. The editor also has a few sublime-style shortcuts which makes it easier to code, the most useful of which will be Ctrl + ], which indents two spaces.
For resources on how to write your own RiveScript check out the Offical Docs.
- Debug mode
- Syntax Highlighter
- Syntax Suggestion Engine