Modified HipChat adapter for GitHub's Hubot, based on https://github.com/hipchat/hubot-hipchat
- CoffeeScript >= 1.3.3
- npm >= 1.1.48
The cubot hipchat expects some enviroment variables specifing the HipChat Jabber user, nick and password for the robot user. The following steps
-
First you must create an account for the robot user in Hipchat
-
Set up enviroment variables for Cubot credentials
export HUBOT_HIPCHAT_JID=XXXX_XXXX@chat.hipchat.com export HUBOT_HIPCHAT_NAME=cubot export HUBOT_HIPCHAT_PASSWORD=secret
You can obtain these values in the HipChat Jabber account info page https://cubox.hipchat.com/account/xmpp
-
(Optional) If you want to persist data setup an account MongoDB account or set up a local Mongo DB and set the enviroment variable indicating the MongoDB URL
export MONGODB_URL=mongodb://cubot:561w7R2O@a.mongohq.com:10096/ar6734416
-
You are ready to go. Run the start script in the main dir
./start
Cubot-HipChat is designed to be deployed into Heroku as a node.js app. Provided you installed Heroku Toolbelt and configured it properly you can deploy the app running the following commands
heroku create --stack cedar
heroku config:set HUBOT_HIPCHAT_JID=XXXX_XXXX@chat.hipchat.com
heroku config:set HUBOT_HIPCHAT_NAME=cubot
heroku config:set HUBOT_HIPCHAT_PASSWORD=secret
# (Optional)
heroku config:set MONGODB_URL=mongodb://cubot:561545W@a.mongohq.com:10096/ar320843
git push remote heroku