Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $defer
- $disableSpecialEscaping
- $suppressErrors
- $if[$customID==participar]
- $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
- $var[title;$json[titleg]]
- $var[description;$json[detallesg]]
- $var[entradas;$json[entradasg]]
- $var[entradas2;$json[entradas2g]]
- $var[end;$json[end]]
- $var[enter;$json[enter-$authorID]]
- $if[$json[imageg]!=]
- $var[image;$json[imageg]]
- $endif
- $ephemeral
- $if[$json[enter-$authorID]==]
- $if[$var[entradas2]>0]
- $if[$var[end]==]
- $title[$var[title]]
- $description[¡Ahora estás participando!]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=enter-$authorID&content=nya&user_id=$messageID]
- $removeButtons
- $if[$var[image]!=]
- $image[$var[image]]
- $endif
- $if[$json[participarg]==]
- $var[participar;$authorID]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=participarg&content=$var[participar]&user_id=$messageID]
- $else
- $var[participar;$json[participarg]%{-SEMICOL-}%$authorID]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=participarg&content=$url[encode;$var[participar]]&user_id=$messageID]
- $endif
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=entradas2g&content=$sub[$var[entradas2];1]&user_id=$messageID]
- $else
- $ephemeral
- $title[$var[title]]
- $description[Este sorteo ya finalizó.]
- $removeButtons
- $endif
- $else
- $title[$var[title]]
- $description[¡Ya se agotaron las entradas!]
- $footer[Espera a que un administrador decida finalizar el Giveaway.]
- $removeButtons
- $if[$var[image]!=]
- $image[$var[image]]
- $endif
- $endif
- $else
- $ephemeral
- $title[$var[title]]
- $description[¡Tú ya estás participando en este sorteo!]
- $removeButtons
- $endif
- $color[FCBFCB]
- $addTimestamp
- $elseif[$customID==finalizar]
- $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
- $var[title;$json[titleg]]
- $var[description;$json[detallesg]]
- $var[entradas;$json[entradasg]]
- $var[entradas2;$json[entradas2g]]
- $var[end;$json[end]]
- $if[$isAdmin[$authorID]==true]
- $if[$var[end]==]
- $if[$argCount[$replaceText[$json[participarg];$url[decode;%3B]; ]]>=2]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=end&content=true&user_id=$messageID]
- $if[$json[imageg]!=]
- $var[image;$json[imageg]]
- $endif
- $var[winner;$eval[$randomText[$unescape[$json[participarg]]]]]
- $title[$var[title]]
- $description[El Giveaway ha finalizado.
- $var[description]
- **Ganador**
- `$nickname[$var[winner]]`]
- $if[$var[image]!=]
- $image[$var[image]]
- $endif
- $sendEmbedMessage[$dmChannelID[$var[winner]];;$var[title];;¡Ganaste en [$var[title]\](https://discord.com/channels/$guildID/$channelID/$messageID)!
- $var[description];FCBFCB;;;;;;$var[image];yes;no]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=winner&content=$var[winner]&user_id=$messageID]
- $removeButtons
- $addButton[no;reroll;ReRoll;success;no;<a:HistoryStart:1154495725120540762>]
- $else
- $ephemeral
- $title[$var[title]]
- $description[¡Deben haber 2 personas participando para poder finalizar el Giveaway!]
- $removeButtons
- $endif
- $else
- $ephemeral
- $title[$var[title]]
- $description[Este sorteo ya finalizó.]
- $removeButtons
- $endif
- $else
- $ephemeral
- $title[$var[title]]
- $description[¡Solo un administrador puede finalizar un Giveaway!]
- $removeButtons
- $endif
- $elseif[$customID==reroll]
- $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
- $var[title;$json[titleg]]
- $var[description;$json[detallesg]]
- $var[entradas;$json[entradasg]]
- $var[entradas2;$json[entradas2g]]
- $var[end;$json[end]]
- $if[$isAdmin[$authorID]==true]
- $if[$argCount[$replaceText[$json[participarg];$url[decode;%3B]; ]]>=2]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=end&content=true&user_id=$messageID]
- $if[$json[imageg]!=]
- $var[image;$json[imageg]]
- $endif
- $var[winner;$eval[$randomText[$unescape[$json[participarg]]]]]
- $title[$var[title]]
- $description[El Giveaway ha finalizado.
- $var[description]
- **Ganador**
- `$nickname[$var[winner]]`]
- $if[$var[image]!=]
- $image[$var[image]]
- $endif
- $sendEmbedMessage[$dmChannelID[$var[winner]];;$var[title];;¡Ganaste en [$var[title]\](https://discord.com/channels/$guildID/$channelID/$messageID)!
- $var[description];FCBFCB;;;;;;$var[image];yes;no]
- $httpGet[https://cwxtwg-5000.csb.app/api/set?var=winner&content=$var[winner]&user_id=$messageID]
- $removeButtons
- $addButton[no;reroll;ReRoll;success;no;<a:HistoryStart:1154495725120540762>]
- $else
- $ephemeral
- $title[$var[title]]
- $description[¡Deben haber 2 personas participando para poder rerollear el Giveaway!]
- $removeButtons
- $endif
- $else
- $ephemeral
- $title[$var[title]]
- $description[¡Solo un administrador puede rerollear un Giveaway!]
- $removeButtons
- $endif
- $endif
- $color[FCBFCB]
- $addTimestamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement