https://github.com/robinpowered/swolebot
A Slack bot for keeping your team fit through open pull requests
https://github.com/robinpowered/swolebot
Last synced: 9 months ago
JSON representation
A Slack bot for keeping your team fit through open pull requests
- Host: GitHub
- URL: https://github.com/robinpowered/swolebot
- Owner: robinpowered
- License: apache-2.0
- Created: 2015-01-10T16:35:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-15T14:09:53.000Z (over 10 years ago)
- Last Synced: 2025-03-24T04:43:39.565Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 367 KB
- Stars: 52
- Watchers: 2
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swolebot
A Slack bot for keeping your team fit through open pull requests.

# Why?
We @robinpowered wanted to stay healthy, so we started doing pushups based on open PR\`s we have.
# How to set this up?
Clone
```
git clone git@github.com:robinpowered/swolebot.git
```
Create Heroku
```
heroku create
```
Configure Heroku environment variables:
```
SLACK_API_TOKEN - required
GITHUB_API_TOKEN - required
REPOS - required. Uses comma-separated format. Eg. 'rails/rails,robinpowered'. You can specify repo, or whole ORG.
SLACK_CHANNEL - required. Defaults to #general
SLACK_ICON - An URL to Swolebot avatar, if you do not like default one
SLACK_USERNAME - Meh. Default: Swolebot
RATIO - Open PR to pushups ratio. Formula: open_PRs * ratio. Default: 2
HOURS - On what hours this should run. Defaults to 11,14,17. Format: Comma-separated values
TIMEZONE - set your TZ. Any valid momentjs TZ will do. Defaults to "America/New_York"
```
Push to Heroku
```
git push heroku master
```
__P.S. Don\`t worry, this will only run on workdays!__
Be fit!