Skip to content
All your ++ and --
CoffeeScript Shell Batchfile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
scripts
.editorconfig
.gitignore
Procfile
README.md
external-scripts.json
hubot-scripts.json
karmabot.png
package.json

README.md

karmabot

Karmabot screenshot

Karmabot is a bot for upvoting and downvoting people in your Slack room. It's built on the Hubot framework for use with Slack.

Getting Started

Testing your bot locally

  • HUBOT_SLACK_TOKEN=xoxb-1234-5678-91011-00e4dd ./bin/hubot --adapter slack

Deploying to Heroku

This is a modified set of instructions based on the Slack hubot-slack repo

  • 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:

      % heroku config:add HUBOT_SLACK_TOKEN=xoxb-1234-5678-91011-00e4dd
      % heroku config:add HUBOT_SLACK_BOTNAME=karmabot
      % heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s  | grep web-url | cut -d= -f2)
    
  • Deploy and start the bot:

      % git push heroku master
    
  • Profit!

Configuration

This adapter uses the following environment variables:

  • HUBOT_SLACK_TOKEN - this is the API token for the Slack user you would like to run Hubot under.
  • HUBOT_SLACK_BOTNAME - this is only for the karmabot leaderboard, it was required for earlier Slack Hubot integrations.
  • HUBOT_HEROKU_KEEPALIVE_URL - keepalive

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

Copyright

Copyright © Slack Technologies, Inc. MIT License; see LICENSE for further details.

You can’t perform that action at this time.