Markov chain IRC conversation bot. Superceded by motobot.
CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
services
.gitignore
INSTALL.md
LICENSE
README.md
bot.coffee
clonebot.coffee
commands.coffee
config.example.coffee
conversation.coffee
logger.coffee
main.coffee
ngrams.coffee
package.json
util.coffee

README.md

rochako

IRC Bot in CoffeeScript

Features

  • Responds with Markov chains
  • Logs to CouchDB
  • Can clone specific nicks
  • Can communicate through arbitrary services
  • Has an HTTP API

API

POST message text to http://localhost:8050/[sender], where [sender] can be optionally given to narrow down the corpus to messages from a particular sender. rochako generates a response and returns it as plain text.

CLI

The command line conversation interface can be enabled by setting cli to true in config.coffee, or by passing - as the first argument when running the bot (./main.coffee -).

Each line the CLI recieves on stdin is read and the response printed in a line to stdout.

ngrams

The Markov chains are generated with the help of the couchgrams CouchApp.