brandonshin / slackbot-workout

A fun hack that gets Slackbot to force your teammates to work out!
MIT License
563 stars 128 forks source link

Odds based #44

Closed chengwang closed 8 years ago

chengwang commented 8 years ago

Trying to change the selection criteria so that users are chosen based on individual odds of selection. So it’s not going to be the same number of users per callout.

At the minTime (here, 60 minutes) any given user has a minOdds chance of getting selected. At the maxTime (here 240 minutes), a user is given maxOdds chance of getting selected. Any time in between, the scale is linear.

For any given callout, there is a max of numPeople selected (chosen randomly).

TODO: no change in odds for exercises you haven’t done before.