Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $if[$customID==bet] $defer
- $jsonParse[$getVar[ext;$authorID]] $var[j1;$json[j1]] $var[j2;$json[j2]]
- $onlyForIDs[$var[j1];$var[j2];]
- $if[$getVar[idioma;$authorID]==es]
- $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]
- $else
- $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]
- $endif
- $if[$checkUserPerms[$botID;externalemojis;embedlinks;attachfiles;addreactions;readmessagehistory;slashcommands]==false]
- ❌ | $var[perm] $ephemeral $removeAllComponents
- $else
- $if[$authorID==$var[j2]]
- $ephemeral $removeButtons
- <a:n0:891419182103670795> | $var[be1]
- $else
- $if[$and[$getVar[monedas;$var[j1]]<$json[amount];$getVar[monedas;$var[j2]]<$json[amount]]==true]
- <a:n0:891419182103670795> | $var[bet1] $ephemeral $removeButtons
- $else
- $cooldown[8s;]
- $removeButtons
- $var[msg;$messageID]
- $async[bt] $replyIn[9s] $removeButtons[$var[msg]] $endasync
- $removeButtons[$var[msg]]
- $editMessage[$channelID;$var[msg];;$var[be2];$var[be3];#585AEC;]
- $jsonParse[$getVar[ext;$var[j1]]] $var[apost1;$json[bet]]
- $jsonParse[$getVar[ext;$var[j2]]] $var[apost2;$json[bet]]
- $var[c;#00ADFF]
- $if[$var[apost1]==$var[apost2]]
- $var[win;$var[be8]]
- $var[prize;$var[be13]]
- $else
- $var[prize;$var[be12]
- +$numberSeparator[$multi[$json[amount];2]]
- $var[be15]
- -$numberSeparator[$json[amount]] ]
- $if[$randomText[10;20]==10]
- $var[win;$var[be4]] $var[c;#2000FF]
- $else
- $var[win;$var[be5]] $var[c;#FF0000]
- $endif
- $endif
- $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
- $async[]
- $replyIn[7s]
- $editMessage[$channelID;$var[msg];;;# $var[be6];#585AEC;]
- $var[s;$sendEmbedMessage[$channelID;;$var[win];;**$var[be9]**
- $username[$var[j1]]: `$var[kl]`
- $username[$var[j2]]: `$var[kl2]`
- $var[prize];$var[c];;;Footer;;;;;yes]]
- $editButton[bet;$var[be7];secondary;yes;;$var[msg]]
- $endasync $await[]
- $if[$var[apost1]==$var[apost2]]
- $addButton[no;Desemp;$var[be14];secondary;no;;$var[s]]
- $endif
- $endif
- $endif
- $endif
- $endif
- $if[$customID==Desemp] $defer
- $jsonParse[$getVar[ext;$authorID]] $var[j1;$json[j1]] $var[j2;$json[j2]]
- $if[$getVar[idioma;$authorID]==es]
- $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:]
- $else
- $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:]
- $endif
- $async[perms]$checkUserPerms[$botID;externalemojis;embedlinks;attachfiles;addreactions;readmessagehistory;slashcommands]$endasync
- $if[$await[perms]==false]
- ❌ | $var[perm] $ephemeral $removeAllComponents
- $else
- $var[msg;$messageID]
- $removeButtons[$var[msg]]
- $editMessage[$channelID;$var[msg];;$var[1];$var[2];#FFFFFF;$var[3]]
- $var[amo;$multi[2;$json[amount]]]
- $var[amo2;$json[amount]]
- $if[$randomText[$var[j1];$var[j2]]==$var[j2]]
- $var[w;$var[j2]] $var[l;$var[j1]]
- $else
- $var[w;$var[j1]] $var[l;$var[j2]]
- $endif
- $async[] $replyIn[5s]
- $editMessage[$channelID;$var[msg];;$var[4];**$var[5]** $username[$var[w]]
- $var[6] +$numberSeparator[$var[amo]]
- **$var[8]** $username[$var[l]]
- $var[9] -$numberSeparator[$var[amo2]];#FFFFFF;$var[7]]
- $endasync $await[]
- $endif
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement