Skip to content

Reminder to Vote - Notifications #13

@inventionlabsSydney

Description

@inventionlabsSydney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions