https://github.com/hamolicious/slack-fair-picker
A less random, random picker designed to lower the chances of picking the same 3 people every single time.
https://github.com/hamolicious/slack-fair-picker
Last synced: about 2 months ago
JSON representation
A less random, random picker designed to lower the chances of picking the same 3 people every single time.
- Host: GitHub
- URL: https://github.com/hamolicious/slack-fair-picker
- Owner: hamolicious
- License: wtfpl
- Created: 2022-09-09T14:41:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T15:15:00.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T05:25:52.246Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack-Fair-Picker
A less random, random picker designed to lower the chances of picking the same 3 people every single time. Every time a user is picked, their weight value decreases meaning they are less likely to get picked the next time around.# Setup
The `.env` file should contain the following
```python
SLACK_SIGNING_SECRET="SIGN_IN_SECRET"
SLACK_BOT_TOKEN="BOT_TOKEN"
APP_TOKEN="APP_TOKEN"
WEIGHT_FALL_OFF=10 # how much to decrease the weight of a user per pick
DEFAULT_WEIGHT=100 # default weight value that is set when a new user is added or when a user's weight goes below 0
DB_PATH="./db/db.json" # the path to the db json file
```# Commands
`/pick [TASK]` - Picks a random user from the channel.. output: `User @hamolicious has been picked for task: do that thing`