This is a Hubot adapter to use with Slack.
-
Testing your bot locally:
$ npm install $ bundle install $ ./bin/hubot
-
Run your Hubot:
$ npm install $ bundle install $ HUBOT_SLACK_TOKEN=<your token> HUBOT_SLACK_TEAM=<your team> ./bin/hubot --adapter slack
This is a modified set of instructions based on the instructions on the Hubot wiki.
- Edit your
Procfile
and change it to use theslack
adapter:
web: bin/hubot --adapter slack
- Install the Heroku Toolbelt to start, then follow their 'Getting Started' instructions, including logging in the first time:
$ heroku login
- Then create a Heroku application:
$ heroku create <your app name>
- Some scripts needs Redis to work, Heroku offers an addon called Redis ToGo, which has a free plan. To use it:
$ heroku addons:add redistogo:nano
-
Activate the Hubot service on your Slack.
-
Add the config variables. For example:
$ heroku config:set HUBOT_SLACK_TOKEN=<your slack token>
$ heroku config:set HUBOT_SLACK_TEAM=<your slack team name>
$ heroku config:set HUBOT_SLACK_BOTNAME=<your bot name>
$ heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
- Deploy and start the bot:
$ heroku keys:add
$ git push heroku master
$ heroku ps:scale web=1
- Enjoy!