github/hubot — pull request #82 by mislav (2011-10-27 22:00:42+00:00)
Title: improvements needed for making a command-line tool

I wanted to make my own hubot on command-line, but the current Robot
base class was missing several essential features.

1. Hubot scripts are loaded asynchronously, but there's no callback
for when that's done. I can't know when listeners are ready.
2. I can't detect when no listener has matched a message. I need the
cmdline tool to error out in this case.
3. Hubot outputs all listener regexes to stdout on start, probably
for debugging.

Features I've added should be non-invasive. Tell me what you think.

I now have my very own hubot command-line tool:

$ open $(hubot mustache me vin diesel)

Is this something you might want in as a separate adapter? It's different
than shell adapter since it only takes a single command and then exits.