Skip to content

jtotoole/pgh-citybot-slack

Repository files navigation

pgh-citybot-slack

pgh-citybot-slack is a chat bot built on the Hubot framework. It was initially generated by generator-hubot, and configured to be deployed on Heroku to get you up and running as quick as possible.

This README is intended to help get you started. Definitely update and improve to talk about your own instance, how to use and deploy, what functionality is available, etc!

Testing the bot locally

HUBOT_SLACK_TOKEN=YOUR_TOKEN_HERE ./bin/hubot -a slack

You'll see some start up output and a prompt:

[Sat Feb 28 2015 12:38:27 GMT+0000 (GMT)] INFO Using default redis on localhost:6379
hubot>

Configuration

This adapter uses the following environment variables:

  • HUBOT_SLACK_TOKEN - this is the API token for the Slack user under which you'd like to run jargonbot.

To add or remove hubot from specific channels or private groups, you can use the /kick and /invite slash commands that are built into Slack.

Deployment

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

  • Follow the instructions above to create a hubot locally

  • Install heroku toolbelt if you haven't already.

  • heroku create my-company-slackbot

  • heroku addons:add redistogo:nano

  • Activate the Hubot service on your "Team Services" page inside Slack.

  • Add the config variables. For example:

      % heroku config:add HUBOT_SLACK_TOKEN=xoxb-1234-5678-91011-00e4dd
      % heroku config:add HEROKU_URL=http://my-company-slackbot.herokuapp.com
    
  • Deploy and start the bot:

      % git push heroku master
      % heroku ps:scale web=1
    
  • Profit!

If you run into any problems, checkout Heroku's docs.

More detailed documentation can be found on the deploying hubot onto Heroku wiki page.

About

Won't you be my slackbot?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published