# How to add hubot to slack

- Published: 2016-05-25
- URL: https://notes.webutvikling.org/how-to-add-hubot-to-slack
- Tags: heroku, hubot, 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
```

---

- [Hubot docs](https://hubot.github.com/docs/)
