Discord рдмреЙрдЯ
Secret Santa Bot
рдкрд░рд┐рдЪрдп
Secret Santa bot gets names of all participants who join, shuffles them up and assigns a secret santa to every participant secretly!ЁЯОД ЁЯдл
Last year my partner and I hosted a secret santa event for our server, but we had to manually draw a random person to assign a secret santa to.
To solve that I wrote a piece of code which could just randomly assign every person a secret santa. But we'd have to inform each person who they're supposed to get a gift for. Which meant we couldn't participate as it would spoil all the fun. We split the list of participants in 2 lists with our names in the opposite list, so that way we both could participate and keep it secret from the other.
But this meant we couldn't get each other as secret santa, or even people from either of the lists could not get a person from a different list.
So to solve all this mess, finally, this year I wrote this bot who would get the list of all the participants, assign each participant a secret santa, and DM every secret santa who they're supposed to get a gift for!!
рднрд╛рд╖рд╛рдПрдБ
- English
рд╕рдореАрдХреНрд╖рд╛рдПрдБ
рд▓реЙрдЧ рдЗрди тАФ рд╕рдореАрдХреНрд╖рд╛ рд▓рд┐рдЦрдиреЗ рдХреЗ рд▓рд┐рдП рд╕рд╛рдЗрди рдЗрди рдХрд░реЗрдВред
рдЕрднреА рдХреЛрдИ рд╕рдореАрдХреНрд╖рд╛ рдирд╣реАрдВ тАФ рдЕрдкрдирд╛ рдЕрдиреБрднрд╡ рд╕рд╛рдЭрд╛ рдХрд░рдиреЗ рд╡рд╛рд▓реЗ рдкрд╣рд▓реЗ рд╡реНрдпрдХреНрддрд┐ рдмрдиреЗрдВред
рд╡реЛрдЯ рдЖрдБрдХрдбрд╝реЗ
рдкрд┐рдЫрд▓реЗ 30 рджрд┐рдиреЛрдВ рдореЗрдВ рдЗрд╕ рдбрд╛рдпрд░реЗрдХреНрдЯрд░реА рдкрд░ рджрд░реНрдЬред
рдкрд┐рдЫрд▓реЗ 30 рджрд┐рди
- рд╡реЛрдЯ
рдкрд┐рдЫрд▓реЗ 30 рджрд┐рдиреЛрдВ рдореЗрдВ рдпрд╣рд╛рдБ рдХреЛрдИ рд╡реЛрдЯ рдирд╣реАрдВред