savagegus
10/9/2012 - 6:57 PM

Hubot local setup with XMPP

Hubot local setup with XMPP

# Using node.js and npm build from http://nodejs.tchol.org
#
sudo yum install http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
sudo yum install nodejs-compat-symlinks npm


sudo npm install -g coffee-script

cd /opt
git clone git://github.com/github/hubot.git && cd hubot
npm install

cd /opt
git clone git://github.com/markstory/hubot-xmpp.git && cd hubot-xmpp
npm install

export HUBOT_XMPP_USERNAME=XXXXX
export HUBOT_XMPP_PASSWORD=XXXXX
export HUBOT_XMPP_ROOMS=XXXXX
export HUBOT_XMPP_HOST=XXXXX
export HUBOT_XMPP_PORT=XXXXX

cd /opt/hubot && bin/hubot -c ../cloudbot
cd /opt/cloudbot
chmod a+x bin/hubot

vi package.json
# Add the following to the dependencies section
    "hubot-xmpp": "0.1.0"

	cd /opt/cloudbot/scripts
	wget https://raw.github.com/github/hubot-scripts/master/src/scripts/jira-issues.coffee
	

bin/hubot -a xmpp