Skip to content

Commit

Permalink
Added weights to advent help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
49Indium committed Nov 21, 2023
1 parent 9b8ceb0 commit 582826b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uqcsbot/advent.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ async def help_command(
The arguments for the command have a bit of nuance. They are as follow:
`prize ` - A description of the prize to be given. This will be displayed when the winner is selected and if `/advent previous-winners` is used.
`start` & `end ` - The initial and final dates (inclusive) of the time range of the prize. To be eligible to win, participants need to get a star from ode of these days. The weights of the selected winner are determined from this range as well.
`weights ` - How the winners are selected. For "Equal", each eligible participant has an equal probability of winning. For "Stars", it is as if each user gets a "raffle ticket" for each star they completed within the timeframe, meaning more stars provides a greater chance of winning.
`number_of_winners ` - The number of winners to randomly select.
`allow_repeat_winners ` - This allows participants to win multiple times from the same selection if `number_of_winners` is greater than 1. Note that regardless of this option, someone can win multiple times in a year, just not in a single selection.
`allow_unregistered_users` - This allows Advent of Code accounts that do not have a linked discord account to win. Note that it can be difficult to give out prizes to users that do not have a linked discord.
Expand Down

0 comments on commit 582826b

Please sign in to comment.