- By Sean Bryant
- https://github.com/sbryant/hubot-shaky
Shaky is an adapter for hubot that interfaces with clubot to proxy messages from IRC over 0mq to hubot.
Shaky requires a custom version of hubot right now. Please use my fork of hubot
Download hubot-shaky.
In the hubot directory:
Change the version for hubot from 2.1.0
to 2.1.2
in package.json then do the following:
$ npm uninstall hubot
$ npm install /path/to/hubot-fork
$ npm install /path/to/hubot-shaky
You configure shaky through environment variables.
HUBOT_SHAKY_SUB_ADDRESS
- The 0MQ subscription address.HUBOT_SHAKY_DEALER_ADDRESS
- The 0MQ dealer address.HUBOT_SHAKY_FILTERS
- A comma delimited list filters to subscribe to.
###An example configuration
$ export HUBOT_SHAKY_SUB_ADDRESS="tcp://localhost:14532"
$ export HUBOT_SHAKY_DEALER_ADDRESS="tcp://localhost:14533"
$ export HUBOT_SHAKY_FILTERS=":PRIVMSG,:PART,:JOIN,:INVITE"
To start hubot with the shaky adpater:
$ ./bin/hubot -a shaky -w
Just fork the project and submit a pull request.