Skip to content

Assign Discord role to on-call engineer weekly #266

Description

@adarshm11

On-Call Role Automation

We're going to have an "oncall" engineer every week at SCE whose job is simply to be the first responder to any failing services. As such, this person may need to be pinged (in both the SCE Discord and the SCE-Dev Discord) for any issues that are not caught by the alert manager.

We need a recurring task for the bot to assign this role based on a constantly evolving list of names for who's going to be on call.

Requirements

  • The bot has to be able to read from a list of Discord handles. This list has to be able to be added to, and the bot can reconcile additions without any miscount or duplicates.
  • The bot has to assign the top name on the list the role of "oncall" in both servers, every Sunday at 12AM. Once someone's assigned, they should no longer be atop the list.
  • The bot should have a medium to allow additions to the oncall list. This could be via a s! command in the server, where only members with the Officer role or higher can use the command to add people to be on call.

Testing

Test it out in the SCE-Dev server by changing the frequency of the task to run every 30 seconds, and add a bunch of names to the list. Verify that the behavior is as intended!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions