Advertisement
InsAnya

peneton

May 1st, 2024 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. $nomention
  2. $if[$customID==bet] $defer
  3. $jsonParse[$getVar[ext;$authorID]] $var[j1;$json[j1]] $var[j2;$json[j2]]
  4. $onlyForIDs[$var[j1];$var[j2];]
  5. $if[$getVar[idioma;$authorID]==es]
  6. $var[perm;No tengo todos los __permisos necesarios__, revisa `D!perms` para ver que todo esté **correcto**.] $var[be1;Tú no eres el __dueño__ de la apuesta para iniciarla.] $var[be2;¡Se inició la apuesta!] $var[be3;Eligiendo un ganador por el color eligido...] $var[be4;Gana azúl] $var[be5;Gana rojo] $var[be6;Apuesta finalizada.] $var[bet1;Ambos jugadores deben tener la cantidad apostada.] $var[be7;Apuesta terminada] $var[be8;Colores iguales] $var[be9;¿Ganador o empate?] $var[be10;Azúl] $var[be11;Rojo] $var[be12;Premio] $var[be13;Empate] $var[be14;Desempate] $var[be15;Perdedor]
  7. $else
  8. $var[perm;I don't have all the __necessary permissions__, check `D!perms` to see that everything is **correct**.] $var[be1;You are not the __owner__ of the bet to initiate it.] $var[be2;Bet started!] $var[be3;Choosing a winner by the chosen color...] $var[be4;Blue wins] $var[be5;Red wins] $var[be6;Bet finalized.] $var[bet1;Both players must have the amount bet.] $var[be7;Bet ended] $var[be8;Same colors] $var[be9;Win or tie?] $var[be10;Blue] $var[be11;Red] $var[be12;Prize] $var[be13;Tie] $var[be14;Tie-breaker] $var[be15;Loser]
  9. $endif
  10. $if[$checkUserPerms[$botID;externalemojis;embedlinks;attachfiles;addreactions;readmessagehistory;slashcommands]==false]
  11. ❌ | $var[perm] $ephemeral $removeAllComponents
  12. $else
  13. $if[$authorID==$var[j2]]
  14. $ephemeral $removeButtons
  15. <a:n0:891419182103670795> | $var[be1]
  16. $else
  17. $if[$and[$getVar[monedas;$var[j1]]<$json[amount];$getVar[monedas;$var[j2]]<$json[amount]]==true]
  18. <a:n0:891419182103670795> | $var[bet1] $ephemeral $removeButtons
  19. $else
  20. $cooldown[8s;]
  21. $removeButtons
  22. $var[msg;$messageID]
  23. $async[bt] $replyIn[9s] $removeButtons[$var[msg]] $endasync
  24. $removeButtons[$var[msg]]
  25. $editMessage[$channelID;$var[msg];;$var[be2];$var[be3];#585AEC;]
  26. $jsonParse[$getVar[ext;$var[j1]]] $var[apost1;$json[bet]]
  27. $jsonParse[$getVar[ext;$var[j2]]] $var[apost2;$json[bet]]
  28. $var[c;#00ADFF]
  29. $if[$var[apost1]==$var[apost2]]
  30. $var[win;$var[be8]]
  31. $var[prize;$var[be13]]
  32. $else
  33. $var[prize;$var[be12]
  34. +$numberSeparator[$multi[$json[amount];2]]
  35. $var[be15]
  36. -$numberSeparator[$json[amount]] ]
  37. $if[$randomText[10;20]==10]
  38. $var[win;$var[be4]] $var[c;#2000FF]
  39. $else
  40. $var[win;$var[be5]] $var[c;#FF0000]
  41. $endif
  42. $endif
  43. $if[$var[apost1]==blue] $var[kl;$var[be10]] $else $var[kl;$var[be11]] $endif $if[$var[apost2]==blue] $var[kl2;$var[be10]] $else $var[kl2;$var[be11]] $endif
  44. $async[]
  45. $replyIn[7s]
  46. $editMessage[$channelID;$var[msg];;;# $var[be6];#585AEC;]
  47. $var[s;$sendEmbedMessage[$channelID;;$var[win];;**$var[be9]**
  48. $username[$var[j1]]: `$var[kl]`
  49. $username[$var[j2]]: `$var[kl2]`
  50.  
  51. $var[prize];$var[c];;;Footer;;;;;yes]]
  52. $editButton[bet;$var[be7];secondary;yes;;$var[msg]]
  53. $endasync $await[]
  54. $if[$var[apost1]==$var[apost2]]
  55. $addButton[no;Desemp;$var[be14];secondary;no;;$var[s]]
  56. $endif
  57. $endif
  58. $endif
  59. $endif
  60. $endif
  61.  
  62. $if[$customID==Desemp] $defer
  63. $jsonParse[$getVar[ext;$authorID]] $var[j1;$json[j1]] $var[j2;$json[j2]]
  64. $if[$getVar[idioma;$authorID]==es]
  65. $var[perm;No tengo todos los __permisos necesarios__, revisa `D!perms` para ver que todo esté **correcto**.] $var[1;Desempate de la apuesta.] $var[2;Eligiendo un usuario aleatorio para el desempate.] $var[3;Escogiendo usuario...] $var[4;¡Ganador elegido!] $var[5;Ganador:] $var[6;Recompensa:] $var[7;Apuesta ganada, lo siento.] $var[8;Perdedor:] $var[9;Descontado:]
  66. $else
  67. $var[perm;I don't have all the __necessary permissions__, check `D!perms` to see that everything is **correct**.] $var[1;Bet tiebreaker.] $var[2;Choosing a random user for the tiebreaker!] $var[3;Choosing user...] $var[4;Winner chosen!] $var[6;Reward:] $var[5;Winner:] $var[7;Bet won, sorry.] $var[8;Loser:] $var[9;Deducted:]
  68. $endif
  69. $async[perms]$checkUserPerms[$botID;externalemojis;embedlinks;attachfiles;addreactions;readmessagehistory;slashcommands]$endasync
  70. $if[$await[perms]==false]
  71. ❌ | $var[perm] $ephemeral $removeAllComponents
  72. $else
  73. $var[msg;$messageID]
  74. $removeButtons[$var[msg]]
  75. $editMessage[$channelID;$var[msg];;$var[1];$var[2];#FFFFFF;$var[3]]
  76. $var[amo;$multi[2;$json[amount]]]
  77. $var[amo2;$json[amount]]
  78. $if[$randomText[$var[j1];$var[j2]]==$var[j2]]
  79. $var[w;$var[j2]] $var[l;$var[j1]]
  80. $else
  81. $var[w;$var[j1]] $var[l;$var[j2]]
  82. $endif
  83. $async[] $replyIn[5s]
  84. $editMessage[$channelID;$var[msg];;$var[4];**$var[5]** $username[$var[w]]
  85. $var[6] +$numberSeparator[$var[amo]]
  86.  
  87. **$var[8]** $username[$var[l]]
  88. $var[9] -$numberSeparator[$var[amo2]];#FFFFFF;$var[7]]
  89. $endasync $await[]
  90. $endif
  91. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement