LorittaBot / Loritta

💁 A multipurpose, multilanguage, customizable, modular, and very cute bot for Discord! ~Making your server more awesome~
https://loritta.website/
GNU Affero General Public License v3.0
667 stars 171 forks source link

Add lottery (lotteritta?) #2118

Open MrPowerGamerBR opened 4 years ago

MrPowerGamerBR commented 4 years ago

Insert more information here later owo

SrGaabriel commented 3 years ago

An idea that can be discussed:

Lottery

Loritta's lottery is just one more addition to its economy that'll be very similar to the +riffle command, the way the clusters're going to communicate and manage winners will have the exact same design.

Ticket

One ticket must contain 6 numbers between 1 and 20, and they'll cost 10,000 sonhos (variable value).

Awards

The award is 33% of the ticket's income with a pseudo-random initial value and will be distributed following these rules:

Abstention

The abstention will occur when there's no "sena" winners, even if someone won the "quina" or "quadra", this event adds the current lottery's total award to the next one.

Schedule

Every day at 08:00PM, the lottery's result will be released and another one will be started.

SrGaabriel commented 3 years ago

If this looks good, I'll start a pull request implementing these ideas.

SrGaabriel commented 3 years ago

I will change to make 6 being the maximum and minimum value to a ticket, this would be better in my opinion.

SrGaabriel commented 3 years ago

The max number of tickets that someone can buy will be 4 (open for suggestions)

SrGaabriel commented 3 years ago

They can cost 10k sonhos because the chance of winning is currently high, and we need a higher income to increase the prize.