Skip to content

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

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.
  2. wiktoriavh commented on Oct 31, 2026

    @wiktoriavh
    MemberAuthor

    The question about how to configure the role in env was a bit silly, i should have proof read it. It is done like any other roles as well.

    @michal-skraburski I mostly agree with you. Everyone with the role gets the role removed, then the winner receives the role. So if the old winner is also this time the winner, it would be a removal and addition of the role. This way we don't have to do a workaround to check if they should just keep it. Easier to just remove the role from everyone, and then add it to the winnres.

    For ties, i think it would be nicer if everyone that tied receive the role. Maybe even Top 3? Maybe the role is called "Top 3 Showcase" or something like this. We want to encourage people, and not make them feel bad for not getting it, just because they had less thumbups, or posted later.

  3. michal-skraburski commented on Nov 6, 2026

    @michal-skraburski
    Contributor

    I believe in the scenario the voter feat. 3/4 issue #127 is dropped due to lack of need -- we should still keep this for the popularity contest in issue #126.

    For ties, i think it would be nicer if everyone that tied receive the role. Maybe even Top 3? Maybe the role is called "Top 3 Showcase" or something like this. We want to encourage people, and not make them feel bad for not getting it, just because they had less thumbups, or posted later.

    Sounds good to me.

  4. added
    triagedWhen an issue was triaged by the owner and given the green light for implementation.
    on Nov 7, 2026
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

    triagedWhen an issue was triaged by the owner and given the green light for implementation.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions