Skip to content

igui/cubot-hipchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

  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:561w7R2O@a.mongohq.com: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 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published