aichaos / rivescript-go

A RiveScript interpreter for Go. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
60 stars 16 forks source link

Add JSON Server Example #14

Closed kirsle closed 7 years ago

kirsle commented 7 years ago

This adds a JSON server example for rivescript-go.

Unlike the JSON server example in the Python version, the Go one is suitable for production use (given some caveats). As such it provides many command line options to control and tune the server's behavior.

See its README for details.

This also fixes a bug in the parser where lines weren't trimmed after inline comments are removed.