Karmabot is a bot for upvoting and downvoting people in your Slack room. It's built on the Hubot framework for use with Slack.
HUBOT_SLACK_TOKEN=xoxb-1234-5678-91011-00e4dd ./bin/hubot --adapter slack
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!
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 © Slack Technologies, Inc. MIT License; see LICENSE for further details.