Notes and anecdotes

Techstuff rambling

How to add hubot to slack

Simple notes on how to install hubot and add it to Slack

Requires git, npm, heroku toolbelt and having added hubot-integration to slack through slack.com

npm install -g yo generator-hubot
mkdir mybot
yo hubot --adapter=slack
heroku login
git init .
rm hubot-scripts.json
git add .
gc -m "Initial commit"
npm install slack-client --save
gc -m "Add slack adapter"
heroku create your-heroku-app-name
heroku addons:create rediscloud:30
heroku config:add HEROKU_URL=https://your-heroku-app-name.herokuapp.com
heroku config:add HUBOT_SLACK_TOKEN=your-token-from-slack-integration
git push heroku master

herokuhubotslack

tomfa • 2016-05-24


Previous Post

Next Post