Slack user karma based on reactions.
From a slack channel type /rekarma
. The full user karma list will be shown inline (visible just to you).
- Go to Apps and Integrations.
- Click on the to right button Build your own.
- Click on Make a custom integration
- Click on Slash Commands.
- Command:
/rekarma
- Update the following info:
- URL:
http://YOUR-DOMAIN/rekarma
- Method:
GET
# Install python dependencies
$ pip install -r requirements.txt
# Set environment variables
$ export SREK_SLAK_API_KEY="YOUR-SLACK-API-KEY-HERE"
$ export REDIS_URL="YOUR-REDIS-URL"
# Start the flask web server
$ python runserver.py
# Start the rq worker
$ python worker.py
- Remember to set the
SREK_SLAK_API_KEY
environment variable in your heroku app using the heroku cli. - You will also need to install and enable a redis addon, redistogo or heroku-redis should work.