Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reminder to Vote - Notifications #13

Open
inventionlabsSydney opened this issue Nov 1, 2022 · 0 comments
Open

Reminder to Vote - Notifications #13

inventionlabsSydney opened this issue Nov 1, 2022 · 0 comments
Milestone

Comments

@inventionlabsSydney
Copy link
Contributor

Reminder to Vote

Part of Notifications Milestones

This issue addresses active users being reminded to vote in the general elections.

What defines an active user?

Slack periodically computes the list of AMU (active monthly users) based on their own set of parameters.
We use this to filter out voting for those who aren't meaningfully active in the community.

The flow to determine this user list, is as follows:

  1. Slack API: get all users from: https://api.slack.com/types/user
  2. Slack API: get all billing status's from: https://api.slack.com/methods/team.billableInfo
  3. Filter billing status for only ones where billing_active is true
  4. Take billing status list, filter user list against those ID's.

Now that we have the active users, we will then take this list and filter it again, against the users who have voted, based on the poll data.

  1. Get each active poll.
  2. For active poll, get user list who has voted
  3. from active users, filter users who don't appear in list of voted for poll.
  4. For each, PM them via the slack bot reminding them to vote for POLL (and link them the poll)

This should be on a 2 day cron, only during business hours and only on weekdays.

Thanks,
Karl.

@inventionlabsSydney inventionlabsSydney added this to the Notifications milestone Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant