An Elm RiveScript library This library provides an Elm interface for RiveScript built on top of the rivescript-js public API.
This release was prepared at the IFF Internet Freedom Festival 2018 in Valencia, Spain.
- Cleaner, more powerful RiveScript Bot API
- Support for RiveScript error trapping
- Support for directions (see What Are Direcrtions?)
Work in progress Detailed installation instructions will follow.
- Wrap javascript interop in an ES6 module.
- Include RiveScript-JS as a dependency.
- Package this interop and publish to NPM.
When these steps are completed, installation should look something like:
-
Install
elm-rivescript
as a dependency of your Elm app.elm package install elm-rivescript
-
Install
elm-rivescript
as a dependency of your project.npm install elm-rivescript
-
Initialise your bot from Javascript.
detailed instructions to folllow
-
Include both your bundled javascript and your Elm app in your HTML source.
- This packages source files are well documented. See the documentation at Elm Packages.
- Also see the comments inline to
src/elm-rivescript.js
on Github. - The repo contains a worked example at
examples/example.html
.
Copyright © 2018 Stichting Free Press Unlimited
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.