Skip to content

Showcase winner role: assign a role for n days to the user with the most votes #128

Open

Description

@wiktoriavh

Why

A temporary role gives the most-voted poster visible recognition.

Acceptance Criteria

  • After results are announced, the bot assigns a configured role to the author of the post with the most votes.
  • The role is removed after n days.
  • Removal survives a bot restart.
  • The role assignment and expiry logic is covered by unit tests.

Open Questions

  • Which role is used, and how is it configured in src/env.ts?
  • What happens if the previous winner still has the role?
  • How are ties handled?
  • What happens if the winner has left the server?

Out of Scope

  • The voting and the result message (separate child issue).

Activity

  1. michal-skraburski commented on Oct 10, 2026

    @michal-skraburski
    Contributor

    Answering open questions

    • A role is configured through the .env
    • When a new winner is assigned, the previous winner loses their role. If previous winner is not present, noop.
    • Ties should be broken into 1st, 2nd, 3rd via time used as a tie breaker. e.g. equally rated items, first item should be granted priority.
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