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

Refactor internal %Previous structure and prettify the shell #20

Closed kirsle closed 7 years ago

kirsle commented 7 years ago

@marceloverdijk found an optimization in RiveScript-Java which allowed for getting rid of the redundant rs.thats structure. This implements that fix for the Go version.

It also cleans up some of the code and adds new features to the cmd/rivescript shell:

screenshot from 2017-02-07 20-30-11

And finally, this fixes a couple small bugs: