$nomention
$textSplit[$customID;-]
$if[$splitText[1]==join_giveaway]
$var[messageID;$splitText[2]]
$removeButtons
$ephemeral
$if[$checkContains[$getServerVar[giveawayParticipants];$authorID]==false]
$setServerVar[giveawayParticipants;$getServerVar[giveawayParticipants]$authorID\;]
$setServerVar[giveawayParticipants2;$getServerVar[giveawayParticipants2]
* <@$authorID>]
$textSplit[$getServerVar[giveawayParticipants];\;]
$editButton[joinUsers;$sub[$getTextSplitLength;1];secondary;no;👤;$var[messageID]]
$description[<@$authorID>, You have successfully joined the giveaway along with `$sub[$getTextSplitLength;1]` other people.
-# Te has unido al sorteo exitosamente junto con `$sub[$getTextSplitLength;1]` personas mas.]
$color[#008000]
$else
$setServerVar[giveawayParticipants;$replaceText[$getServerVar[giveawayParticipants];$authorID\;;]]
$setServerVar[giveawayParticipants2;$replaceText[$getServerVar[giveawayParticipants2];* <@$authorID>;]]
$textSplit[$getServerVar[giveawayParticipants];\;]
$editButton[joinUsers;$sub[$getTextSplitLength;1];secondary;no;👤;$var[messageID]]
$description[<@$authorID> You have left the draw. Only `$sub[$getTextSplitLength;1]` people remain.
-# Has salido del sorteo. Solo quedan `$sub[$getTextSplitLength;1]` personas.]
$color[#FF0000]
$endif
$elseif[$customID==pick_winner-$authorID]
$removeButtons
$textSplit[$getServerVar[giveawayParticipants];\;]
$if[$getTextSplitLength>1]
$try
$var[winnerIndex;$random[1;$getTextSplitLength]]
$catch
$endtry
$try
$var[winner;$splitText[$var[winnerIndex]]]
$catch
$endtry
<@$var[winner]>
$title[Giveaway winner! / Ganador del sorteo!]
$description[Congratulations, <@$var[winner]>!
You won the **$getServerVar[giveawayPrize] giveaway!** 🎉
-# ¡Ganaste el sorteo de **$getServerVar[giveawayPrize]!** 🎉]
$footer[Organized by $username]
$color[#FFFF00]
$addReactions[🎉]
$setServerVar[giveawayParticipants2;]
$if[$var[winner]!=]
$try
$sendEmbedMessage[$dmChannelID[$var[winner]];;;;**Congratulations, you just won the *$getServerVar[giveawayPrize]* giveaway on $serverName[$guildID]**.
-# **Acabas de ganar el sorteo de *$getServerVar[giveawayPrize]* en $serverName[$guildID]**.
> **[Go to the draw / Ir al sorteo\](https://discord.com/channels/$guildID/$channelID/$messageID)**;#FFFF00;;;;;;;yes;no]
$catch
$endtry
$endif
$endif
$endif
$endif
$if[$customID==joinUsers]
$removeButtons
$ephemeral
$nomention
$if[$getServerVar[giveawayParticipants2]==]
$description[There are no participants yet.
-# Aún no hay participantes]
$else
$title[Users in the draw 🎉🎊 / Usuarios en el sorteo 🎉🎊]
$description[$getServerVar[giveawayParticipants2]]
$endif
$endif
Comentarios (2)
Inicia sesión para comentar
Los miembros de mi sv viendo el code
QUE VAN A SORTEA EL CHANCHO🗣🔥
XD