This is a version of GitHub's Campfire bot, hubot. He's pretty cool.
You'll probably never have to hack on this repo directly.
Instead this repo provides a library that's distributed by
npm that you
simply require in your project. Follow the instructions below and get your own
hubot ready to deploy.
Download the latest version of hubot.
Then follow the instructions in the README in the extracted
Adapters are the interface to the service you want your hubot to run on. This can be something like Campfire or IRC. There are a number of third party adapters that the community have contributed. Check the hubot wiki for the available ones and how to create your own.
Please submit issues and pull requests for third party adapters to the adapter repo not this repo unless it's the Campfire or Shell adapter.
Hubot ships with a number of default scripts, but there's a growing number of
extras in the hubot-scripts repository.
hubot-scripts is a
way to share scripts with the entire community.
Check out the README for more help on installing individual scripts.
Hubot has a HTTP listener which listens on the port specified by the
You can specify routes to listen on in your scripts by using the
=robotrouterget "/hubot/version"resend robotversion
There are functions for GET, POST, PUT and DELETE, which all take a route and callback function that accepts a request and a response.
Install all of the required dependencies by running
It's easy to test scripts locally with an interactive shell:
% export PATH="node_modules/.bin:$PATH" % bin/hubot
... and to run unit tests:
% make test