Advertisement
InsAnya

Untitled

Feb 11th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. $nomention
  2. $defer
  3. $disableSpecialEscaping
  4. $suppressErrors
  5. $if[$customID==participar]
  6. $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
  7. $var[title;$json[titleg]]
  8. $var[description;$json[detallesg]]
  9. $var[entradas;$json[entradasg]]
  10. $var[entradas2;$json[entradas2g]]
  11. $var[end;$json[end]]
  12. $var[enter;$json[enter-$authorID]]
  13. $if[$json[imageg]!=]
  14. $var[image;$json[imageg]]
  15. $endif
  16. $ephemeral
  17. $if[$json[enter-$authorID]==]
  18. $if[$var[entradas2]>0]
  19. $if[$var[end]==]
  20. $title[$var[title]]
  21. $description[¡Ahora estás participando!]
  22. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=enter-$authorID&content=nya&user_id=$messageID]
  23. $removeButtons
  24. $if[$var[image]!=]
  25. $image[$var[image]]
  26. $endif
  27. $if[$json[participarg]==]
  28. $var[participar;$authorID]
  29. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=participarg&content=$var[participar]&user_id=$messageID]
  30. $else
  31. $var[participar;$json[participarg]%{-SEMICOL-}%$authorID]
  32. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=participarg&content=$url[encode;$var[participar]]&user_id=$messageID]
  33. $endif
  34. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=entradas2g&content=$sub[$var[entradas2];1]&user_id=$messageID]
  35. $else
  36. $ephemeral
  37. $title[$var[title]]
  38. $description[Este sorteo ya finalizó.]
  39. $removeButtons
  40. $endif
  41. $else
  42. $title[$var[title]]
  43. $description[¡Ya se agotaron las entradas!]
  44. $footer[Espera a que un administrador decida finalizar el Giveaway.]
  45. $removeButtons
  46. $if[$var[image]!=]
  47. $image[$var[image]]
  48. $endif
  49. $endif
  50. $else
  51. $ephemeral
  52. $title[$var[title]]
  53. $description[¡Tú ya estás participando en este sorteo!]
  54. $removeButtons
  55. $endif
  56. $color[FCBFCB]
  57. $addTimestamp
  58.  
  59. $elseif[$customID==finalizar]
  60. $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
  61. $var[title;$json[titleg]]
  62. $var[description;$json[detallesg]]
  63. $var[entradas;$json[entradasg]]
  64. $var[entradas2;$json[entradas2g]]
  65. $var[end;$json[end]]
  66. $if[$isAdmin[$authorID]==true]
  67. $if[$var[end]==]
  68. $if[$argCount[$replaceText[$json[participarg];$url[decode;%3B]; ]]>=2]
  69. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=end&content=true&user_id=$messageID]
  70. $if[$json[imageg]!=]
  71. $var[image;$json[imageg]]
  72. $endif
  73. $var[winner;$eval[$randomText[$unescape[$json[participarg]]]]]
  74. $title[$var[title]]
  75. $description[El Giveaway ha finalizado.
  76. $var[description]
  77.  
  78. **Ganador**
  79. `$nickname[$var[winner]]`]
  80. $if[$var[image]!=]
  81. $image[$var[image]]
  82. $endif
  83. $sendEmbedMessage[$dmChannelID[$var[winner]];;$var[title];;¡Ganaste en [$var[title]\](https://discord.com/channels/$guildID/$channelID/$messageID)!
  84. $var[description];FCBFCB;;;;;;$var[image];yes;no]
  85. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=winner&content=$var[winner]&user_id=$messageID]
  86. $removeButtons
  87. $addButton[no;reroll;ReRoll;success;no;<a:HistoryStart:1154495725120540762>]
  88. $else
  89. $ephemeral
  90. $title[$var[title]]
  91. $description[¡Deben haber 2 personas participando para poder finalizar el Giveaway!]
  92. $removeButtons
  93. $endif
  94. $else
  95. $ephemeral
  96. $title[$var[title]]
  97. $description[Este sorteo ya finalizó.]
  98. $removeButtons
  99. $endif
  100. $else
  101. $ephemeral
  102. $title[$var[title]]
  103. $description[¡Solo un administrador puede finalizar un Giveaway!]
  104. $removeButtons
  105. $endif
  106. $elseif[$customID==reroll]
  107. $jsonParse[$httpGet[https://cwxtwg-5000.csb.app/api/get?user_id=$messageID]$httpResult]
  108. $var[title;$json[titleg]]
  109. $var[description;$json[detallesg]]
  110. $var[entradas;$json[entradasg]]
  111. $var[entradas2;$json[entradas2g]]
  112. $var[end;$json[end]]
  113. $if[$isAdmin[$authorID]==true]
  114. $if[$argCount[$replaceText[$json[participarg];$url[decode;%3B]; ]]>=2]
  115. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=end&content=true&user_id=$messageID]
  116. $if[$json[imageg]!=]
  117. $var[image;$json[imageg]]
  118. $endif
  119. $var[winner;$eval[$randomText[$unescape[$json[participarg]]]]]
  120. $title[$var[title]]
  121. $description[El Giveaway ha finalizado.
  122. $var[description]
  123.  
  124. **Ganador**
  125. `$nickname[$var[winner]]`]
  126. $if[$var[image]!=]
  127. $image[$var[image]]
  128. $endif
  129. $sendEmbedMessage[$dmChannelID[$var[winner]];;$var[title];;¡Ganaste en [$var[title]\](https://discord.com/channels/$guildID/$channelID/$messageID)!
  130. $var[description];FCBFCB;;;;;;$var[image];yes;no]
  131. $httpGet[https://cwxtwg-5000.csb.app/api/set?var=winner&content=$var[winner]&user_id=$messageID]
  132. $removeButtons
  133. $addButton[no;reroll;ReRoll;success;no;<a:HistoryStart:1154495725120540762>]
  134. $else
  135. $ephemeral
  136. $title[$var[title]]
  137. $description[¡Deben haber 2 personas participando para poder rerollear el Giveaway!]
  138. $removeButtons
  139. $endif
  140. $else
  141. $ephemeral
  142. $title[$var[title]]
  143. $description[¡Solo un administrador puede rerollear un Giveaway!]
  144. $removeButtons
  145. $endif
  146. $endif
  147. $color[FCBFCB]
  148. $addTimestamp
  149.  
  150.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement