Skip to content

rvillage/hubot_slack

Repository files navigation

hubot_slack

This is a Hubot adapter to use with Slack.

Getting Started

  • 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

Deploying to heroku

This is a modified set of instructions based on the instructions on the Hubot wiki.

  1. Edit your Procfile and change it to use the slack adapter:
web: bin/hubot --adapter slack
  1. Install the Heroku Toolbelt to start, then follow their 'Getting Started' instructions, including logging in the first time:
$ heroku login
  1. Then create a Heroku application:
$ heroku create <your app name>
  1. 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
  1. Activate the Hubot service on your Slack.

  2. 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
  1. Deploy and start the bot:
$ heroku keys:add
$ git push heroku master
$ heroku ps:scale web=1
  1. Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published