How to install Hubot to Ubuntu linux.
What is Hubot: Awesome bot for everything
Add new user and install NVM
useradd -m hubot
su - hubot
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | bash
nvm install 0.10
Install HUBOT
npm install generator-hubot yo coffee-script hubot hubot-xmpp
yo hubot --defaults
Connect Hubot to XMPP Room
cat <<EOF > /etc/init/hubot.conf
# hubot - xmpp bot
description "Hubot XMPP bot"
env HUBOT_LOG_LEVEL="debug"
env HUBOT_XMPP_HOST="xmppserver.com"
env HUBOT_XMPP_USERNAME="XMPPACC"
env HUBOT_XMPP_PASSWORD="XMPPPASS"
env HUBOT_XMPP_ROOMS='XMPPROOM@conference.xmppserver.com:roompassword'
env HUBOT_XMPP_PORT="5222"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
env HUBOT_DIR="/home/hubot/"
env HUBOT="bin/hubot"
env HUBOT_ARGS="-a xmpp"
env HUBOT_USER='hubot' # system account
env HUBOT_NAME='hubot' # what hubot listens to
respawn
respawn limit 5 60
exec start-stop-daemon --start --chuid ${HUBOT_USER} --chdir ${HUBOT_DIR} --exec ${HUBOT_DIR}${HUBOT} -- $HUBOT_ARGS >> /home/hubot/hubot.log 2>&1
EOF
Configure Hubot scripts
cat /home/hubot/hubot-scripts.json
["shipit.coffee", "sudo.coffee", "9gag.coffee", "abstract.coffee", "commandlinefu.coffee", "xkcd.coffee", "yoda-quotes.coffee"]
More scripts: LINK
Start Hubot
start hubot
tail -f /home/hubot/hubot.log