Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.88 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.88 KB

Cubot-HipChat

Modified HipChat adapter for GitHub's Hubot, based on https://github.com/hipchat/hubot-hipchat

Requirements

Configuration and local deploy

The cubot hipchat expects some enviroment variables specifing the HipChat Jabber user, nick and password for the robot user. The following steps

  1. First you must create an account for the robot user in Hipchat

  2. Set up enviroment variables for Cubot credentials

    export [email protected]
    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

  3. (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:[email protected]:10096/ar6734416
  4. You are ready to go. Run the start script in the main dir

    ./start

Deploying into Heroku

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 [email protected]
heroku config:set HUBOT_HIPCHAT_NAME=cubot
heroku config:set HUBOT_HIPCHAT_PASSWORD=secret

# (Optional)
heroku config:set MONGODB_URL=mongodb://cubot:[email protected]:10096/ar320843

git push remote heroku