Skip to content

Crappy rivescript command line tool to avoid doing actual work

Notifications You must be signed in to change notification settings

mraaroncruz/rivebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rivebot

Ok. This is an attempt of using rivescript from any programming language by build in little crappy script in Golang.

It uses redis as a session store, so there's a hard dependency for you. I plan on just implementing a file store but as I said, this is a time saving process. My alternative was to write a parser in Ruby and I don't want to do that.

The next step would be to wrap some Go in an FFI backed Ruby C extension, but I'll see how far this will get me first.

Use

# Install binary
go get github.com/pferdefleisch/rivebot

# Make sure redis is running
redis-server

# Run bot brain
rivebot -rs="./path/to/rivescript/directory" -message="this is a false statement" -sessionid="12346"

This will print out your bot's response to stdout

License

MIT

About

Crappy rivescript command line tool to avoid doing actual work

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages