Do you have Questions or need Help?
By using our codes you agree to our terms of use!
1. Enter a slash command in the text field.
2. Click the slash command above the text field and select Copy CommandID.
3. To embed the whole thing in an embed or message, write it like this: </command:CommandID>. You can replace /command with any text, and for CommandID, you must paste the CommandID you copied earlier.
Kingfisher Clash is a fast-paced Discord card game where players race to match cards and score points!
Trigger: !help
Command language : BDScript
Trigger: !play
Command language : BDScript 2
Trigger: $onInteraction[confirm]
Command language : BDScript 2
Trigger: !card
Command language : BDScript 2
Trigger: !cancel
Command language : BDScript
!help
!rules
!cards
Trigger: $onInteraction
Trigger: !start
Trigger: !var
Trigger: !draw
Trigger: !play
Trigger: $onInteraction
Smart Slowmode
Murder Mystery
Code 1
!murder
Command language: BDScript 2
Code 2
Trigger: $onInteraction[guess_murderer]
Command language: BDScript 2
Code 3
Trigger: $onInteraction[modal_guess_murderer]
Command language: BDScript 2
XP Bot Share Code
Valid until: 2.06.2025
2YMBsNdQ9bh8O80lTaMW6bGEX
For the custom emojis used in the bot, you have to change the emoji IDs manually in each command if you want to use them.
Klick here to acces the emojis.
Giveaway Code
There are currently some technical problems with copying, so the code is not copied correctly, the code is available here in Pastebin.
Trigger: !giveaway
Command language: BDScript 2
Trigger: $onInteraction
Command language: BDScript 2
!setup
Command language: BDScript 2
Trigger: $onInteraction[open-ticket]
Trigger: $onInteraction[Create-Ticket]
Command language: BDScript 2
!setup
Command language: BDScript 2
$onInteraction[apply]
Command language: BDScript 2
$onInteraction[partnersubmit]
Command language: BDScript 2
This Code were made by darknessdev. (1034627889318084608)
ChatGPT
Meta
DeepSeek
This Code was made By izana.py (1073383604576591974)
More information
Trigger: !musik
Command language: BDScript 2
Trigger: $onInteraction
Command language: BDScript 2
Trigger: !start
Command language: BDScript 2
Trigger: $onInteraction[spin_wheel]
Command language: BDScript 2
Trigger: !profil
Command language: BDScript 2
economic system
Variable
color=04f6ef
bank=0
cash=0
symbole=`💶`
wallet=0
balance=0
streak=0
lastClaim=
accountLevel=
Trigger: !bal
Trigger: !work
Command language: BDScript 2
Trigger: !pay
Command language: BDScript 2
Trigger: ! or your bots Prefix
Command language: BDScript 2
Trigger: !leaderboard
Command language: BDScript 2
Trigger: !dice
Command language : BDScript 2
Trigger: !help
Command language: BDScript
Trigger: !setsymbole
Command language : BDScript
Trigger: !setmoney
Command language: BDScript 2
Trigger: !dep
Command language : BDSCRIPT 2
Trigger: !with
Command language : BDSCRIPT 2
Since the code still has a few comments with lines when editing, the different codes are separated by 🟥
I would also like to thank yuraj_e4k for helping me develop this code.
Code 1
Trigger: !start
Command language: BDSCRIPT 2
$c[Var Check]
$varExistError[user_set;> `user_set` with the value: no]
$varExistError[user_field;> `user_field` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[bot_field;> `bot_field` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[guess;> `guess` with empty value]
$varExistError[bot_play;> `bot_play` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[playfield;> `playfield` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[bot_playable;> `bot_playable` with the value: 1,1/1,2/1,3/1,4/1,5/2,1/2,2/2,3/2,4/2,5/3,1/3,2/3,3/3,4/3,5/4,1/4,2/4,3/4,4,/4,5/5,1/5,2/5,3/5,4/5,5]
$c[Variable Reset]
$resetUserVar[user_field;$authorID]
$resetUserVar[playfield;$authorID]
$resetUserVar[bot_field;$authorID]
$resetUserVar[bot_playable;$authorID]
$c[Actual Message]
$title[Choose your first coordinate]
$description[Any of these!]
$setUserVar[user_set;choose]
$c[BUTTONS]
$nomention
$textSplit[$getUserVar[user_field];,]
$addButton[yes;coord-1,1-$authorID; ;primary;no;$splitText[1];]
$addButton[no;coord-1,2-$authorID; ;primary;no;$splitText[2];]
$addButton[no;coord-1,3-$authorID; ;primary;no;$splitText[3];]
$addButton[no;coord-1,4-$authorID; ;primary;no;$splitText[4];]
$addButton[no;coord-1,5-$authorID; ;primary;no;$splitText[5];]
$addButton[yes;coord-2,1-$authorID; ;primary;no;$splitText[6];]
$addButton[no;coord-2,2-$authorID; ;primary;no;$splitText[7];]
$addButton[no;coord-2,3-$authorID; ;primary;no;$splitText[8];]
$addButton[no;coord-2,4-$authorID; ;primary;no;$splitText[9];]
$addButton[no;coord-2,5-$authorID; ;primary;no;$splitText[10];]
$addButton[yes;coord-3,1-$authorID; ;primary;no;$splitText[11];]
$addButton[no;coord-3,2-$authorID; ;primary;no;$splitText[12];]
$addButton[no;coord-3,3-$authorID; ;primary;no;$splitText[13];]
$addButton[no;coord-3,4-$authorID; ;primary;no;$splitText[14];]
$addButton[no;coord-3,5-$authorID; ;primary;no;$splitText[15];]
$addButton[yes;coord-4,1-$authorID; ;primary;no;$splitText[16];]
$addButton[no;coord-4,2-$authorID; ;primary;no;$splitText[17];]
$addButton[no;coord-4,3-$authorID; ;primary;no;$splitText[18];]
$addButton[no;coord-4,4-$authorID; ;primary;no;$splitText[19];]
$addButton[no;coord-4,5-$authorID; ;primary;no;$splitText[20];]
$addButton[yes;coord-5,1-$authorID; ;primary;no;$splitText[21];]
$addButton[no;coord-5,2-$authorID; ;primary;no;$splitText[22];]
$addButton[no;coord-5,3-$authorID; ;primary;no;$splitText[23];]
$addButton[no;coord-5,4-$authorID; ;primary;no;$splitText[24];]
$addButton[no;coord-5,5-$authorID; ;primary;no;$splitText[25];]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Code 2
Trigger: $onInteraction
Command language: BDSCRIPT 2
$c[Var Check]
$varExistError[user_set;> `user_set` with the value: no]
$varExistError[user_field;> `user_field` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[bot_field;> `bot_field` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[guess;> `guess` with empty value]
$varExistError[bot_play;> `bot_play` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[playfield;> `playfield` with the value: 🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦,🟦]
$varExistError[bot_playable;> `bot_playable` with the value: 1,1/1,2/1,3/1,4/1,5/2,1/2,2/2,3/2,4/2,5/3,1/3,2/3,3/3,4/3,5/4,1/4,2/4,3/4,4,/4,5/5,1/5,2/5,3/5,4/5,5]
$if[$cropText[$customID;6;]==coord-]
$if[$getUserVar[user_set]==choosed]
$textSplit[$customID;-]
$onlyForIDs[$splitText[3];]
$var[coord;$splitText[2]]
$textSplit[$var[coord];,]
$var[x;$splitText[1]]
$var[y;$splitText[2]]
$var[num;$calculate[($var[x]-1)*5+$var[y]]]
$textSplit[$getUserVar[bot_field];,]
$if[$splitText[$var[num]]==🚢]
$editSplitText[$var[num];💥]
$var[msgid;$sendEmbedMessage[$channelID;;;;You destroyed a ship! 💥;#00ff00;;;;;;;;yes]]
$var[emoji;💥]
$else
$editSplitText[$var[num];🌊]
$var[msgid;$sendEmbedMessage[$channelID;;;;You hit the water! 🌊;#ff0000;;;;;;;;yes]]
$var[emoji;🌊]
$endif
$setUserVar[bot_field;$joinSplitText[,]]
$textSplit[$getUserVar[playfield];,]
$editSplitText[$var[num];$var[emoji]]
$setUserVar[playfield;$joinSplitText[,]]
$c[^^^^^ Bis hier ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^]
$addButton[yes;coord-1,1-$authorID; ;primary;$var[coord1];$splitText[1];$var[msgid]]
$addButton[no;coord-1,2-$authorID; ;primary;$var[coord2];$splitText[2];$var[msgid]]
$addButton[no;coord-1,3-$authorID; ;primary;$var[coord3];$splitText[3];$var[msgid]]
$addButton[no;coord-1,4-$authorID; ;primary;$var[coord4];$splitText[4];$var[msgid]]
$addButton[no;coord-1,5-$authorID; ;primary;$var[coord5];$splitText[5];$var[msgid]]
$addButton[yes;coord-2,1-$authorID; ;primary;$var[coord6];$splitText[6];$var[msgid]]
$addButton[no;coord-2,2-$authorID; ;primary;$var[coord7];$splitText[7];$var[msgid]]
$addButton[no;coord-2,3-$authorID; ;primary;$var[coord8];$splitText[8];$var[msgid]]
$addButton[no;coord-2,4-$authorID; ;primary;$var[coord9];$splitText[9];$var[msgid]]
$addButton[no;coord-2,5-$authorID; ;primary;$var[coord10];$splitText[10];$var[msgid]]
$addButton[yes;coord-3,1-$authorID; ;primary;$var[coord11];$splitText[11];$var[msgid]]
$addButton[no;coord-3,2-$authorID; ;primary;$var[coord12];$splitText[12];$var[msgid]]
$addButton[no;coord-3,3-$authorID; ;primary;$var[coord13];$splitText[13];$var[msgid]]
$addButton[no;coord-3,4-$authorID; ;primary;$var[coord14];$splitText[14];$var[msgid]]
$addButton[no;coord-3,5-$authorID; ;primary;$var[coord15];$splitText[15];$var[msgid]]
$addButton[yes;coord-4,1-$authorID; ;primary;$var[coord16];$splitText[16];$var[msgid]]
$addButton[no;coord-4,2-$authorID; ;primary;$var[coord17];$splitText[17];$var[msgid]]
$addButton[no;coord-4,3-$authorID; ;primary;$var[coord18];$splitText[18];$var[msgid]]
$addButton[no;coord-4,4-$authorID; ;primary;$var[coord19];$splitText[19];$var[msgid]]
$addButton[no;coord-4,5-$authorID; ;primary;$var[coord20];$splitText[20];$var[msgid]]
$addButton[yes;coord-5,1-$authorID; ;primary;$var[coord21];$splitText[21];$var[msgid]]
$addButton[no;coord-5,2-$authorID; ;primary;$var[coord22];$splitText[22];$var[msgid]]
$addButton[no;coord-5,3-$authorID; ;primary;$var[coord23];$splitText[23];$var[msgid]]
$addButton[no;coord-5,4-$authorID; ;primary;$var[coord24];$splitText[24];$var[msgid]]
$addButton[no;coord-5,5-$authorID; ;primary;$var[coord25];$splitText[25];$var[msgid]]
$editButton[coord-$var[x],$var[y]-$authorID; ;primary;yes;$var[emoji];$var[msgid]]
$if[$checkContains[$replaceText[$getUserVar[playfield];💥;;1];💥]==false]
$textSplit[$getUserVar[bot_playable];/]
$var[random;$random[1;$getTextSplitLength]]
$var[botxy;$splitText[$var[random]]] $c[83]
$textSplit[$var[botxy];,]
$var[botx;$splitText[1]]
$var[boty;$splitText[2]]
$var[botnum;$sum[$multi[$sub[$splitText[1];1];5];$splitText[2]]]
$textSplit[$getUserVar[bot_playable];/]
$removeSplitTextElement[$var[random]] $c[<------------------------------------------------------------------------------------------------------------------------]
$setUserVar[bot_playable;$joinSplitText[/]]
$textSplit[$getUserVar[user_field];,]
$if[$splitText[$var[botnum]]==🚢]
$if[$getUserVar[bot_play]==yes]
$sendMessage[Bot has successfully destroyed your ships! you have lost the battle!]
$resetUserVar[user_field;$authorID]
$resetUserVar[bot_field;$authorID]
$resetUserVar[user_set;$authorID]
$resetUserVar[guess;$authorID]
$resetUserVar[playfield;$authorID]
$resetUserVar[bot_play;$authorID]
$resetUserVar[bot_playable;$authorID]
$else
$setUserVar[bot_play;yes]
$endif
$var[botmsg;Destroyed the ship! ]
$if[$var[botx]!=1]
$var[playable;$var[playable]/$sub[$var[botx];1],$var[boty]]
$endif
$if[$var[botx]!=5]
$var[playable;$var[playable]/$sum[$var[botx];1],$var[boty]]
$endif
$if[$var[boty]!=1]
$var[playable;$var[playable]/$var[botx],$sub[$var[boty];1]]
$endif
$if[$var[boty]!=5]
$var[playable;$var[playable]/$var[botx],$sum[$var[boty];1]]
$endif
$else
$var[botmsg;Hit the water! ]
$var[playable;/$getUserVar[bot_playable]]
$endif
$setUserVar[bot_playable;$replaceText[$var[playable];/;;1]]
$var[msgid;$sendEmbedMessage[$channelID;;;;Bot chose $var[botxy]. It $var[botmsg]!;#00ff00;;;;;;;;yes]]
$c[Ab hier]
$else
$sendMessage[You destroyed both of bot's ship before him! you won the battle!]
$resetUserVar[user_field;$authorID]
$resetUserVar[bot_field;$authorID]
$resetUserVar[user_set;$authorID]
$resetUserVar[guess;$authorID]
$resetUserVar[playfield;$authorID]
$resetUserVar[bot_play;$authorID]
$resetUserVar[bot_playable;$authorID]
$c[HERE 1000]
$endif
$endif $c[<--- Von mir]
$if[$getUserVar[user_set]==choose2]
$textSplit[$customID;-]
$var[coord;$splitText[2]]
$textSplit[$var[coord];,]
$var[x;$splitText[1]]
$var[y;$splitText[2]]
$textSplit[$getUserVar[user_field];,]
$var[numold;$getTextSplitIndex[🚢]]
$var[num;$calculate[($var[x]-1)*5+$var[y]]]
$onlyIf[$or[$sub[$var[numold];$var[num]]==1;$sub[$var[numold];$var[num]]==5;$sub[$var[numold];$var[num]]==-1;$sub[$var[numold];$var[num]]==-5]==true;]
$editSplitText[$var[num];🚢]
$sendMessage[Now bot will choose a coordinate for boat!;no]
$var[rand;$random[0;26]]
$if[$checkContains[.$var[rand];.6;.11;.16]==true]
$var[rand2;$sum[$var[rand];$randomText[1;5;-5]]]
$endif
$if[$checkContains[.$var[rand].;.2.;.3.;.4.]==true]
$var[rand2;$sum[$var[rand];$randomText[-1;1;5]]]
$endif
$if[$checkContains[$var[rand];10;15;20]==true]
$var[rand2;$sum[$var[rand];$randomText[-1;5;-5]]]
$endif
$if[$checkContains[$var[rand];22;23;24]==true]
$var[rand2;$sum[$var[rand];$randomText[1;-1;-5]]]
$endif
$if[$var[rand]==1]
$var[rand2;$sum[$var[rand];$randomText[1;5]]]
$endif
$if[$var[rand]==5]
$var[rand2;$sum[$var[rand];$randomText[-1;5]]]
$endif
$if[$var[rand]==21]
$var[rand2;$sum[$var[rand];$randomText[1;-5]]]
$endif
$if[$var[rand]==25]
$var[rand2;$sum[$var[rand];$randomText[-1;-5]]]
$endif
$if[$checkContains[$var[rand];7;8;9;12;13;14;17;18;19]==true]
$var[rand2;$sum[$var[rand];$randomText[1;-1;5;-5]]]
$endif
$var[join;$joinSplitText[,]]
$textSplit[$getUserVar[bot_field];,]
$editSplitText[$var[rand];🚢]
$editSplitText[$var[rand2];🚢]
$setUserVar[bot_field;$joinSplitText[,]]
$var[msgid;$sendMessage[Bot has successfully chosen the coordinates!;yes]]
$setUserVar[user_field;$var[join]]
$setUserVar[user_set;choosed]
$c[HERE 2]
$var[msgid;$sendMessage[Choose a spot to fire a bomb!;yes]]
$textSplit[:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:,:blue_square:;,]
$nomention
$addButton[yes;coord-1,1-$authorID; ;primary;$var[coord1];$splitText[1];$var[msgid]]
$addButton[no;coord-1,2-$authorID; ;primary;$var[coord2];$splitText[2];$var[msgid]]
$addButton[no;coord-1,3-$authorID; ;primary;$var[coord3];$splitText[3];$var[msgid]]
$addButton[no;coord-1,4-$authorID; ;primary;$var[coord4];$splitText[4];$var[msgid]]
$addButton[no;coord-1,5-$authorID; ;primary;$var[coord5];$splitText[5];$var[msgid]]
$addButton[yes;coord-2,1-$authorID; ;primary;$var[coord6];$splitText[6];$var[msgid]]
$addButton[no;coord-2,2-$authorID; ;primary;$var[coord7];$splitText[7];$var[msgid]]
$addButton[no;coord-2,3-$authorID; ;primary;$var[coord8];$splitText[8];$var[msgid]]
$addButton[no;coord-2,4-$authorID; ;primary;$var[coord9];$splitText[9];$var[msgid]]
$addButton[no;coord-2,5-$authorID; ;primary;$var[coord10];$splitText[10];$var[msgid]]
$addButton[yes;coord-3,1-$authorID; ;primary;$var[coord11];$splitText[11];$var[msgid]]
$addButton[no;coord-3,2-$authorID; ;primary;$var[coord12];$splitText[12];$var[msgid]]
$addButton[no;coord-3,3-$authorID; ;primary;$var[coord13];$splitText[13];$var[msgid]]
$addButton[no;coord-3,4-$authorID; ;primary;$var[coord14];$splitText[14];$var[msgid]]
$addButton[no;coord-3,5-$authorID; ;primary;$var[coord15];$splitText[15];$var[msgid]]
$addButton[yes;coord-4,1-$authorID; ;primary;$var[coord16];$splitText[16];$var[msgid]]
$addButton[no;coord-4,2-$authorID; ;primary;$var[coord17];$splitText[17];$var[msgid]]
$addButton[no;coord-4,3-$authorID; ;primary;$var[coord18];$splitText[18];$var[msgid]]
$addButton[no;coord-4,4-$authorID; ;primary;$var[coord19];$splitText[19];$var[msgid]]
$addButton[no;coord-4,5-$authorID; ;primary;$var[coord20];$splitText[20];$var[msgid]]
$addButton[yes;coord-5,1-$authorID; ;primary;$var[coord21];$splitText[21];$var[msgid]]
$addButton[no;coord-5,2-$authorID; ;primary;$var[coord22];$splitText[22];$var[msgid]]
$addButton[no;coord-5,3-$authorID; ;primary;$var[coord23];$splitText[23];$var[msgid]]
$addButton[no;coord-5,4-$authorID; ;primary;$var[coord24];$splitText[24];$var[msgid]]
$addButton[no;coord-5,5-$authorID; ;primary;$var[coord25];$splitText[25];$var[msgid]]
$resetUserVar[guess;$authorID]
$endif
$if[$getUserVar[user_set]==choose]
$nomention
$textSplit[$customID;-]
$onlyForIDs[$splitText[3];]
$var[coord;$splitText[2]]
$textSplit[$var[coord];,]
$var[x;$splitText[1]]
$var[y;$splitText[2]]
$var[num;$calculate[($var[x]-1)*5+$var[y]]]
$var[msgid;$sendMessage[Choose one more adjacent coordinate!;yes]]
$var[coord1;yes]
$var[coord2;yes]
$var[coord3;yes]
$var[coord4;yes]
$var[coord5;yes]
$var[coord6;yes]
$var[coord7;yes]
$var[coord8;yes]
$var[coord9;yes]
$var[coord10;yes]
$var[coord11;yes]
$var[coord12;yes]
$var[coord13;yes]
$var[coord14;yes]
$var[coord15;yes]
$var[coord16;yes]
$var[coord17;yes]
$var[coord18;yes]
$var[coord19;yes]
$var[coord20;yes]
$var[coord21;yes]
$var[coord22;yes]
$var[coord23;yes]
$var[coord24;yes]
$var[coord25;yes]
$if[$var[x]!=1]
$var[num1;$calculate[($var[x]-2)*5+$var[y]]]
$endif
$if[$var[x]!=5]
$var[num2;$calculate[($var[x])*5+$var[y]]]
$endif
$if[$var[y]!=1]
$var[num3;$calculate[($var[x]-1)*5+$var[y]-1]]
$endif
$if[$var[y]!=5]
$var[num4;$calculate[($var[x]-1)*5+$var[y]+1]]
$endif
$var[coord$var[num1];no]
$var[coord$var[num2];no]
$var[coord$var[num3];no]
$var[coord$var[num4];no]
$textSplit[$getUserVar[user_field];,]
$editSplitText[$var[num];🚢]
$addButton[yes;coord-1,1-$authorID; ;primary;$var[coord1];$splitText[1];$var[msgid]]
$addButton[no;coord-1,2-$authorID; ;primary;$var[coord2];$splitText[2];$var[msgid]]
$addButton[no;coord-1,3-$authorID; ;primary;$var[coord3];$splitText[3];$var[msgid]]
$addButton[no;coord-1,4-$authorID; ;primary;$var[coord4];$splitText[4];$var[msgid]]
$addButton[no;coord-1,5-$authorID; ;primary;$var[coord5];$splitText[5];$var[msgid]]
$addButton[yes;coord-2,1-$authorID; ;primary;$var[coord6];$splitText[6];$var[msgid]]
$addButton[no;coord-2,2-$authorID; ;primary;$var[coord7];$splitText[7];$var[msgid]]
$addButton[no;coord-2,3-$authorID; ;primary;$var[coord8];$splitText[8];$var[msgid]]
$addButton[no;coord-2,4-$authorID; ;primary;$var[coord9];$splitText[9];$var[msgid]]
$addButton[no;coord-2,5-$authorID; ;primary;$var[coord10];$splitText[10];$var[msgid]]
$addButton[yes;coord-3,1-$authorID; ;primary;$var[coord11];$splitText[11];$var[msgid]]
$addButton[no;coord-3,2-$authorID; ;primary;$var[coord12];$splitText[12];$var[msgid]]
$addButton[no;coord-3,3-$authorID; ;primary;$var[coord13];$splitText[13];$var[msgid]]
$addButton[no;coord-3,4-$authorID; ;primary;$var[coord14];$splitText[14];$var[msgid]]
$addButton[no;coord-3,5-$authorID; ;primary;$var[coord15];$splitText[15];$var[msgid]]
$addButton[yes;coord-4,1-$authorID; ;primary;$var[coord16];$splitText[16];$var[msgid]]
$addButton[no;coord-4,2-$authorID; ;primary;$var[coord17];$splitText[17];$var[msgid]]
$addButton[no;coord-4,3-$authorID; ;primary;$var[coord18];$splitText[18];$var[msgid]]
$addButton[no;coord-4,4-$authorID; ;primary;$var[coord19];$splitText[19];$var[msgid]]
$addButton[no;coord-4,5-$authorID; ;primary;$var[coord20];$splitText[20];$var[msgid]]
$addButton[yes;coord-5,1-$authorID; ;primary;$var[coord21];$splitText[21];$var[msgid]]
$addButton[no;coord-5,2-$authorID; ;primary;$var[coord22];$splitText[22];$var[msgid]]
$addButton[no;coord-5,3-$authorID; ;primary;$var[coord23];$splitText[23];$var[msgid]]
$addButton[no;coord-5,4-$authorID; ;primary;$var[coord24];$splitText[24];$var[msgid]]
$addButton[no;coord-5,5-$authorID; ;primary;$var[coord25];$splitText[25];$var[msgid]]
$setUserVar[user_field;$joinSplitText[,]]
$setUserVar[user_set;choose2]
$endif
$endif
Since the code still has a few comments with lines when editing, the different codes are separated by 🟥.
The respective triggers are under the line of 🟥.
All codes are in the BDScript2 language
If you want to update the Card emojis you can join this server here
I would also like to thank yuraj_e4k for helping me develop this code.
_______________________________________________________________________________________________________________________________________
!start
$nomention $authorID
$varExistError[uno_play;> Error: Please Create the variable with the name: `uno_play` with the value: `NaN`]
$onlyIf[$getUserVar[uno_play]==NaN;You are already playing a game of Uno. Finish it first to start a new one!]
$serverCooldown[10s;]
$title[Uno Game starts!]
$description[Click on Join button to participate in the uno
Hosted by <@$authorID>]
$addTimestamp
$color[$getVar[color]]
$addButton[yes;uno_part;Join;secondary;no;]
$addButton[no;uno_start;Start;primary;]
$resetUserVar[uno_play]
$resetUserVar[uno_host]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
$onInteraction[uno_part]
$nomention
$serverCooldown[2s;]
$onlyIf[$getUserVar[uno_play]==NaN; You are already in a game, $username!]
$var[host;$getMessage[$channelID;$messageID;content]]
$textSplit[$getUserVar[uno_host;$var[host]];&]
$var[members;$splitText[1]]
$var[mentions;$splitText[2]]
$onlyIf[$var[members]!=10;$username, the uno is full!]
$sendMessage[<@$authorID> joined the game as participant number $sum[$var[members];1]!]
$setUserVar[uno_host;$sum[$var[members];1]&$var[mentions]$authorID,;$var[host]]
$setUserVar[uno_play;$var[host]]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
$onInteraction[uno_start]
$nomention
$defer
$var[red0;<:0_red:1308153774518571098>]
$var[red1;<:1_red:1308129446867370035>]
$var[red2;<:2_red:1308126533709463565>]
$var[red3;<:3_red:1308153463267397662>]
$var[red4;<:4_red:1308157135380811786>]
$var[red5;<:5_red:1308145698268643439>]
$var[red6;<:6_red:1308129827458646137>]
$var[red7;<:7_red:1308133540650815510>]
$var[red8;<:8_red:1308143135955882096>]
$var[red9;<:9_red:1308145301927891055>]
$var[red_skip;<:red_skipp:1308133974291255448>]
$var[red_reverse;<:reverse_red:1308127777043517450>]
$var[red_draw2;<:draw_2_red:1308126200014835794> ]
$var[blue0;<:0_blue:1308152081265459362>]
$var[blue1;<:1_blue:1308123312001646673>]
$var[blue2;<:2_blue:1308144549859688489>]
$var[blue3;<:3_blue:1308132368787439638>]
$var[blue4;<:4_blue:1308148470288486440>]
$var[blue5;<:5_blue:1308144104483455086>]
$var[blue6;<:6_blue:1308148789265174580>]
$var[blue7;<:7_blue:1308147057072017448>]
$var[blue8;<:8_blue:1308149522022662235>]
$var[blue9;<:9_blue:1308151155376787537>]
$var[blue_skip;<:blue_skipp:1308147406881161418>]
$var[blue_reverse;<:blue_reverse:1308133137586454671>]
$var[blue_draw2;<:blue_draw_2:1308132763508932638>]
$var[yellow0;<:0_yellow:1308152482974797968>]
$var[yellow1;<:1_yellow:1308144865254834197>]
$var[yellow2;<:2_yellow:1308126867802554419>]
$var[yellow3;<:3_yellow:1308147916959121459>]
$var[yellow4;<:4_yellow:1308150633928593530>]
$var[yellow5;<:5_yellow:1308130269185708133>]
$var[yellow6;<:6_yellow:1308153003060236358>]
$var[yellow7;<:7_yellow:1308158580926713886>]
$var[yellow8;<:8_yellow:1308150239252971530>]
$var[yellow9;<:9_yellow:1308157765096574978>]
$var[yellow_skip;<:skipp_yellow:1308123822381076550>]
$var[yellow_reverse;<:reverse_yellow:1308124659446972518>]
$var[yellow_draw2;<:draw_2_yellow:1308124343607361576>]
$var[green0;<:0_green:1308128960525111296>]
$var[green1;<:1_green:1308127166814490694>]
$var[green2;<:2_green:1308146096228536381>]
$var[green3;<:3_green:1308161208590798858>]
$var[green4;<:4_green:1308131273604337795>]
$var[green5;<:5_green:1308125493911883776>]
$var[green6;<:6_green:1308146523519062036>]
$var[green7;<:7_green:1308134637091950623>]
$var[green8;<:8_green:1308131716971630622>]
$var[green9;<:9_green:1308125845319323688>]
$var[green_skip;<:skip_green:1308125164315086898>]
$var[green_reverse;<:reverse_green:1308128578193588274>]
$var[green_draw2;<:green_draw_2:1308174779072647238>]
$var[wild;<:wild:1308132047520534558>]
$var[wild_draw4;<:draw_4:1308128115683365015>]
$c[_________________________________________________________________________________________________________________________________]
$var[complete;red0,red1,red1,red2,red2,red3,red3,red4,red4,red5,red5,red6,red6,red7,red7,red8,red8,red9,red9,red_skip,red_skip,red_reverse,red_reverse,red_draw2,red_draw2,blue0,blue1,blue1,blue2,blue2,blue3,blue3,blue4,blue4,blue5,blue5,blue6,blue6,blue7,blue7,blue8,blue8,blue9,blue9,blue_skip,blue_skip,blue_reverse,blue_reverse,blue_draw2,blue_draw2,yellow0,yellow1,yellow1,yellow2,yellow2,yellow3,yellow3,yellow4,yellow4,yellow5,yellow5,yellow6,yellow6,yellow7,yellow7,yellow8,yellow8,yellow9,yellow9,yellow_skip,yellow_skip,yellow_reverse,yellow_reverse,yellow_draw2,yellow_draw2,green0,green1,green1,green2,green2,green3,green3,green4,green4,green5,green5,green6,green6,green7,green7,green8,green8,green9,green9,green_skip,green_skip,green_reverse,green_reverse,green_draw2,green_draw2,wild,wild,wild,wild,wild_draw4,wild_draw4,wild_draw4,wild_draw4]
$var[host;$getMessage[$channelID;$messageID;content]]
$onlyForIDs[$var[host];Only the host can start a game!]
$textSplit[$getUserVar[uno_host;$var[host]];&]
$var[number;$splitText[1]]
$var[mentions;$splitText[2]]
$textSplit[$var[mentions];,]
$var[men1;$splitText[1]]
$var[men2;$splitText[2]]
$var[men3;$splitText[3]]
$var[men4;$splitText[4]]
$var[men5;$splitText[5]]
$var[men6;$splitText[6]]
$var[men7;$splitText[7]]
$var[men8;$splitText[8]]
$var[men9;$splitText[9]]
$var[men10;$splitText[10]]
$onlyIf[$var[number]>=2;You must have atleast 2 participants!]
$textSplit[$var[complete];,]
$var[num;1]
$if[$var[men$var[num]]!=]
$var[msg;Player 1: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$if[$var[men$var[num]]!=]$var[msg;$var[msg]
Player $var[num]: <@$var[men$var[num]]>]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$var[n;$random[1;$getTextSplitLength]]
$var[deck;$var[deck],$splitText[$var[n]]]
$removeSplitTextElement[$var[n]]
$setUserVar[uno_deck;$var[deck];$var[men$var[num]]]
$var[num;$sum[$var[num];1]]
$endif
$c[THE GAME STARTS!]
$sendMessage[The game has started with $var[number] members!
Card left in deck: $getTextSplitLength
$var[msg]
Starting the game in 10 seconds....]
$var[left;$joinSplitText[,]]
$onlyIf[$var[number]>=2;You must have atleast 2 participants!]
$editButton[uno_part;Join;danger;yes;;$messageID]
$editButton[uno_start;Start;danger;yes;;$messageID]
$replyIn[10s]
$onlyIf[$var[number]>=2;You must have atleast 2 participants!]
$c[____________________________________________________________________________________________________________________________________________________________]
$removeSplitTextElement[$getTextSplitIndex[red_skip]]
$removeSplitTextElement[$getTextSplitIndex[red_skip]]
$removeSplitTextElement[$getTextSplitIndex[red_draw2]]
$removeSplitTextElement[$getTextSplitIndex[red_draw2]]
$removeSplitTextElement[$getTextSplitIndex[red_reverse]]
$removeSplitTextElement[$getTextSplitIndex[red_reverse]]
$removeSplitTextElement[$getTextSplitIndex[green_skip]]
$removeSplitTextElement[$getTextSplitIndex[green_skip]]
$removeSplitTextElement[$getTextSplitIndex[green_draw2]]
$removeSplitTextElement[$getTextSplitIndex[green_draw2]]
$removeSplitTextElement[$getTextSplitIndex[green_reverse]]
$removeSplitTextElement[$getTextSplitIndex[green_reverse]]
$removeSplitTextElement[$getTextSplitIndex[blue_skip]]
$removeSplitTextElement[$getTextSplitIndex[blue_skip]]
$removeSplitTextElement[$getTextSplitIndex[blue_draw2]]
$removeSplitTextElement[$getTextSplitIndex[blue_draw2]]
$removeSplitTextElement[$getTextSplitIndex[blue_reverse]]
$removeSplitTextElement[$getTextSplitIndex[blue_reverse]]
$removeSplitTextElement[$getTextSplitIndex[yellow_skip]]
$removeSplitTextElement[$getTextSplitIndex[yellow_skip]]
$removeSplitTextElement[$getTextSplitIndex[yellow_draw2]]
$removeSplitTextElement[$getTextSplitIndex[yellow_draw2]]
$removeSplitTextElement[$getTextSplitIndex[yellow_reverse]]
$removeSplitTextElement[$getTextSplitIndex[yellow_reverse]]
$removeSplitTextElement[$getTextSplitIndex[wild]]
$removeSplitTextElement[$getTextSplitIndex[wild]]
$removeSplitTextElement[$getTextSplitIndex[wild]]
$removeSplitTextElement[$getTextSplitIndex[wild]]
$removeSplitTextElement[$getTextSplitIndex[wild_draw4]]
$removeSplitTextElement[$getTextSplitIndex[wild_draw4]]
$removeSplitTextElement[$getTextSplitIndex[wild_draw4]]
$removeSplitTextElement[$getTextSplitIndex[wild_draw4]]
$c[_______________________________________________________________________________________________________________________________________________________________]
$var[card;$splitText[$random[1;$getTextSplitLength]]]
$var[id;$sendMessage[The bot drew a card:
$var[$var[card]];true]]
$addButton[yes;uno_deck;See deck;primary;false;;$var[id]]
$textSplit[$getUserVar[uno_host];&]
$var[number;$splitText[1]]
$textSplit[$splitText[2];,]
$var[tun;$random[1;$var[number]]]
$var[turnoff;$splitText[$var[tun]]]
$setUserVar[uno_turn;true;$var[turnoff]]
$sendMessage[It's <@$var[turnoff]>'s turn to play a card!]
$textSplit[$var[left];,] $c[________________________________________________________________________________]
$removeSplitTextElement[$getTextSplitIndex[$var[card]]]
$var[left;$joinSplitText[,]]
$setUserVar[uno_pool;$var[card]]
$setUserVar[uno_left;$var[left];$var[host]]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Trigger: $onInteraction[uno_deck]
$c[BDSCRIPT2]
$nomention
$defer
$onlyIf[$getUserVar[uno_play]!=NaN;]
$removeButtons
$ephemeral
$var[red0;<:0_red:1308153774518571098>]
$var[red1;<:1_red:1308129446867370035>]
$var[red2;<:2_red:1308126533709463565>]
$var[red3;<:3_red:1308153463267397662>]
$var[red4;<:4_red:1308157135380811786>]
$var[red5;<:5_red:1308145698268643439>]
$var[red6;<:6_red:1308129827458646137>]
$var[red7;<:7_red:1308133540650815510>]
$var[red8;<:8_red:1308143135955882096>]
$var[red9;<:9_red:1308145301927891055>]
$var[red_skip;<:red_skipp:1308133974291255448>]
$var[red_reverse;<:reverse_red:1308127777043517450>]
$var[red_draw2;<:draw_2_red:1308126200014835794>]
$var[blue0;<:0_blue:1308152081265459362>]
$var[blue1;<:1_blue:1308123312001646673>]
$var[blue2;<:2_blue:1308144549859688489>]
$var[blue3;<:3_blue:1308132368787439638>]
$var[blue4;<:4_blue:1308148470288486440>]
$var[blue5;<:5_blue:1308144104483455086>]
$var[blue6;<:6_blue:1308148789265174580>]
$var[blue7;<:7_blue:1308147057072017448>]
$var[blue8;<:8_blue:1308149522022662235>]
$var[blue9;<:9_blue:1308151155376787537>]
$var[blue_skip;<:blue_skipp:1308147406881161418>]
$var[blue_reverse;<:blue_reverse:1308133137586454671>]
$var[blue_draw2;<:draw_2_blue:1308132763508932638>]
$var[yellow0;<:0_yellow:1308152482974797968>]
$var[yellow1;<:1_yellow:1308144865254834197>]
$var[yellow2;<:2_yellow:1308126867802554419>]
$var[yellow3;<:3_yellow:1308147916959121459>]
$var[yellow4;<:4_yellow:1308150633928593530>]
$var[yellow5;<:5_yellow:1308130269185708133>]
$var[yellow6;<:6_yellow:1308153003060236358>]
$var[yellow7;<:7_yellow:1308158580926713886>]
$var[yellow8;<:8_yellow:1308150239252971530>]
$var[yellow9;<:9_yellow:1308157765096574978>]
$var[yellow_skip;<:skipp_yellow:1308123822381076550>]
$var[yellow_reverse;<:reverse_yellow:1308124659446972518>]
$var[yellow_draw2;<:draw_2_yellow:1308124343607361576>]
$var[green0;<:0_green:1308128960525111296>]
$var[green1;<:1_green:1308127166814490694>]
$var[green2;<:2_green:1308146096228536381>]
$var[green3;<:3_green:1308161208590798858>]
$var[green4;<:4_green:1308131273604337795>]
$var[green5;<:5_green:1308125493911883776>]
$var[green6;<:6_green:1308146523519062036>]
$var[green7;<:7_green:1308134637091950623>]
$var[green8;<:8_green:1308131716971630622>]
$var[green9;<:9_green:1308125845319323688>]
$var[green_skip;<:skip_green:1308125164315086898>]
$var[green_reverse;<:reverse_green:1308128578193588274>]
$var[green_draw2;<:green_draw_2:1308174779072647238>]
$var[wild;<:wild:1308132047520534558>]
$var[wild_draw4;<:draw_4:1308128115683365015>]
$c[____________________________________________________________________________________________________]
$var[left;$getUserVar[uno_left;$getUserVar[uno_play]]]
$var[pool;$getUserVar[uno_pool;$getUserVar[uno_play]]]
$if[$cropText[$var[left];40;]==$var[left]]
$textSplit[$var[pool];,]
$setUserVar[uno_pool;$splitText[1];$getUserVar[uno_play]]
$removeSplitTextElement[1]
$var[leftover;$joinSplitText[,]]
$setUserVar[uno_left;$getUserVar[uno_left;$getUserVar[uno_play]],$var[leftover];$getUserVar[uno_play]]
$sendMessage[Only few cards left in draw pile. Collecting the cards played....]
$stop
$endif
$c[____________________________________________________________________________________________________]
$textSplit[$getUserVar[uno_pool;$getUserVar[uno_play]];,]
$var[cardon;$splitText[1]]
$textSplit[$getUserVar[uno_deck];,]
$var[$splitText[1]valid;yes]
$var[$splitText[2]valid;yes]
$var[$splitText[3]valid;yes]
$var[$splitText[4]valid;yes]
$var[$splitText[5]valid;yes]
$var[$splitText[6]valid;yes]
$var[$splitText[7]valid;yes]
$var[$splitText[8]valid;yes]
$var[$splitText[9]valid;yes]
$var[$splitText[10]valid;yes]
$var[$splitText[11]valid;yes]
$var[$splitText[12]valid;yes]
$var[$splitText[13]valid;yes]
$var[$splitText[14]valid;yes]
$var[$splitText[15]valid;yes]
$var[$splitText[16]valid;yes]
$var[$splitText[17]valid;yes]
$var[$splitText[18]valid;yes]
$var[$splitText[19]valid;yes]
$var[$splitText[20]valid;yes]
$var[$splitText[21]valid;yes]
$var[$splitText[22]valid;yes]
$var[$splitText[23]valid;yes]
$var[$splitText[24]valid;yes]
$var[$splitText[25]valid;yes]
$c[Checking System]
$var[cardon;$replaceText[$var[cardon];draw2;drawtwo;1]]
$if[$checkContains[$var[cardon];red]==true]
$var[color;red]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];red;;1]]
$elseif[$checkContains[$var[cardon];blue]==true]
$var[color;blue]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];blue;;1]]
$elseif[$checkContains[$var[cardon];yellow]==true]
$var[color;yellow]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];yellow;;1]]
$elseif[$checkContains[$var[cardon];green]==true]
$var[color;green]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];green;;1]]
$else
$var[color;$getUserVar[uno_wild]]
$var[sym;wild]
$endif
$var[numb;1]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$c[140]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$if[$checkContains[$replaceText[$splitText[$var[numb]];draw2;drawtwo;1];$var[color];$var[sym]]==true]
$var[$splitText[$var[numb]]valid;no]
$endif
$var[numb;$sum[$var[numb];1]]
$c[unter der Linie einfügen]
$c[______________________________________________________________________________________________________]
$var[wildvalid;no]
$var[wild_draw4valid;no]
$var[haha;false]
$if[$checkContains[no;$var[$splitText[1]valid];$var[$splitText[2]valid];$var[$splitText[3]valid];$var[$splitText[4]valid];$var[$splitText[5]valid];$var[$splitText[6]valid];$var[$splitText[7]valid];$var[$splitText[8]valid];$var[$splitText[9]valid];$var[$splitText[10]valid];$var[$splitText[11]valid];$var[$splitText[12]valid];$var[$splitText[13]valid];$var[$splitText[14]valid];$var[$splitText[15]valid];$var[$splitText[16]valid];$var[$splitText[17]valid];$var[$splitText[18]valid];$var[$splitText[19]valid];$var[$splitText[20]valid];$var[$splitText[21]valid];$var[$splitText[22]valid];$var[$splitText[23]valid];$var[$splitText[24]valid];$var[$splitText[25]valid]]==false]
$if[$getUserVar[uno_turn]==true]
$if[$getUserVar[uno_draw]==]
$addButton[yes;uno_draw_$authorID;Draw a card!;secondary;no;;$sendMessage[You ran out of useable cards! You need to draw a card $username!;yes]]
$var[haha;true]
$c[-------------------------------------------------------------------------]
$else
$var[haha;false]
$c[ HIER ]
$var[TXT;$joinSplitText[,]]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$var[numberofplayers;$splitText[1]]
$textSplit[$splitText[2];,]
$var[mynumbs;$getTextSplitIndex[$authorID]]
$if[$getUserVar[uno_order;$getUserVar[uno_play]]==1]
$if[$var[mynumbs]==$var[numberofplayers]]
$var[theanswer;1]
$else
$var[theanswer;$sum[$var[mynumbs];1]]
$endif
$else
$if[$var[mynumbs]==1]
$var[theanswer;$var[numberofplayers]]
$else
$var[theanswer;$sub[$var[mynumbs];1]]
$endif
$endif
$var[theidof;$splitText[$var[theanswer]]]
$sendMessage[$username's card was Un-Playable. Skipping the turn to <@$var[theidof]>!]
$setUserVar[uno_draw;]
$setUserVar[uno_turn;false]
$setUserVar[uno_turn;true;$var[theidof]]
$textSplit[$var[TXT];,]
$endif
$endif
$else
$if[$and[$checkContains[$getUserVar[uno_deck];,]==false;$getUserVar[uno_turn]==true]]
$sendMessage[$username has won the game!! His last card: $var[$getUserVar[uno_deck]]]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$var[members;$splitText[1]]
$var[mentions;$splitText[2]]
$c[______________________________________________________________________________________________________________________________________________________________]
$try
$textSplit[$var[mentions];,]
$var[num;1]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[1/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[2/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[3/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[4/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[5/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[6/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[7/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[8/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[9/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]]
$endtry
$stop
$endif
$endif
$c[______________________________________________________________________________________________]
$if[$or[$var[cardon]==wild;$var[cardon]==wild_draw4]]
$c[HERE IN FUTURE]
$endif
$c[CHECKING SYSTEM ENDS]
$c[Über der Linie einfügen]
$var[lol;1]
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$c[1/4]
$if[$getTextSplitLength>=$var[lol]]
$addButton[yes;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$c[2/4]
$if[$getTextSplitLength>=$var[lol]]
$addButton[yes;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$c[3/4]
$if[$getTextSplitLength>=$var[lol]]
$addButton[yes;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$c[4/4]
$if[$getTextSplitLength>=$var[lol]]
$addButton[yes;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$if[$getTextSplitLength>=$var[lol]]
$addButton[no;uno_play_$var[lol]_$splitText[$var[lol]];;primary;$var[$splitText[$var[lol]]valid];$var[$splitText[$var[lol]]]]
$var[lol;$sum[$var[lol];1]]
$endif
$title[Your Deck]
$description[Click a card below to play it!
$try
> $var[$splitText[1]] $var[$splitText[2]] $var[$splitText[3]] $var[$splitText[4]] $var[$splitText[5]] $var[$splitText[6]] $var[$splitText[7]] $var[$splitText[8]] $var[$splitText[9]] $var[$splitText[10]] $var[$splitText[11]] $var[$splitText[12]] $var[$splitText[13]] $var[$splitText[14]] $var[$splitText[15]] $var[$splitText[16]] $var[$splitText[17]] $var[$splitText[18]] $var[$splitText[19]] $var[$splitText[20]] $var[$splitText[21]] $var[$splitText[22]] $var[$splitText[23]] $var[$splitText[24]] $var[$splitText[25]]
$endtry]
$color[$getVar[color]]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Triger: !stop
$onlyIf[$getUserVar[uno_host]!=0;You are not hosting any game!]
Successfully stopped the game!
$textSplit[$getUserVar[uno_host];&]
$var[members;$splitText[1]]
$var[mentions;$splitText[2]]
$try
$textSplit[$var[mentions];,]
$var[num;1]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[1/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[2/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[3/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[4/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[5/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[6/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[7/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[8/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]
$c[9/9]
$var[guy;$splitText[$var[num]]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[num;$sum[$var[num];1]]]
$endtry
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Trigger: !leave
$nomention
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$var[host;$getUserVar[uno_play]]
$onlyIf[$userExists[$var[host]]==true;You are not in a game!]
$textSplit[$getUserVar[uno_host;$var[host]];&]
$var[members;$splitText[1]]
$var[mentions;$replaceText[$splitText[2];$authorID,;;1]]
$setUserVar[uno_host;$sub[$var[members];1]&$var[mentions];$var[host]]
$setUserVar[uno_left;$getUserVar[uno_left;$var[host]],$getUserVar[uno_deck];$var[host]]
$resetUserVar[uno_play;$authorID]
$resetUserVar[uno_host;$authorID]
$resetUserVar[uno_part;$authorID]
$resetUserVar[uno_deck;$authorID]
$resetUserVar[uno_turn;$authorID]
$resetUserVar[uno_pool;$authorID]
$resetUserVar[uno_left;$authorID]
$channelSendMessage[$channelID;$username left the uno game! $sub[$var[members];1] participants left!]
$dm[$var[host]]
$title[$username has left your uno game! ]
$description[$sub[$var[members];1] Participant left!]
$color[$getVar[color]]
$if[$and[$var[members]==2;$getUserVar[uno_deck]!=]]
$textSplit[$splitText[2];,]
$removeSplitTextElement[$getTextSplitIndex[$authorID]]
$username[$splitText[1]] has won the game!
$channelSendMessage[$channelID;$username[$splitText[1]] has won the game by default!]
$var[guy;$var[host]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$var[guy;$splitText[1]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$endif
$endif
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Trigger: !kick
$nomention
$onlyIf[$getUserVar[uno_host]!=0;You are not hosting any game!]
$textSplit[$getUserVar[uno_host];&]
$var[members;$splitText[1]]
$var[mentions;$splitText[2]]
$textSplit[$var[mentions];,]
$removeSplitTextElement[$getTextSplitIndex[$mentioned[1]]]
$var[newmen;$joinSplitText[,]]
$onlyIf[$var[newmen]!=$var[mentions];Couldn't kick the user]
$onlyIf[$getUserVar[uno_deck]==;The game has already started!]
$setUserVar[uno_host;$sub[$var[members];1]&$var[newmen]]
$var[guy;$mentioned[1]]
$resetUserVar[uno_play;$var[guy]]
$resetUserVar[uno_host;$var[guy]]
$resetUserVar[uno_part;$var[guy]]
$resetUserVar[uno_deck;$var[guy]]
$resetUserVar[uno_turn;$var[guy]]
$resetUserVar[uno_pool;$var[guy]]
$resetUserVar[uno_left;$var[guy]]
$channelSendMessage[$channelID; Successfully kicked $username[$mentioned[1]] from the game. $sub[$var[members];1] Participants left!]
$dm[$mentioned[1]]
$title[You were kicked]
$description[You were kicked from the game hosted by $username!]
$color[$getVar[color]]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
Trigger: $onInteraction
$defer
$if[$cropText[$customID;9;]==uno_play_]
$setUserVar[uno_draw;]
$var[red0;<:0_red:1308153774518571098>]
$var[red1;<:1_red:1308129446867370035>]
$var[red2;<:2_red:1308126533709463565>]
$var[red3;<:3_red:1308153463267397662>]
$var[red4;<:4_red:1308157135380811786>]
$var[red5;<:5_red:1308145698268643439>]
$var[red6;<:6_red:1308129827458646137>]
$var[red7;<:7_red:1308133540650815510>]
$var[red8;<:8_red:1308143135955882096>]
$var[red9;<:9_red:1308145301927891055>]
$var[red_skip;<:red_skip:1308133974291255448>]
$var[red_reverse;<:reverse_red:1308127777043517450>]
$var[red_draw2;<:draw_2_red:1308126200014835794> ]
$var[blue0;<:0_blue:1308152081265459362>]
$var[blue1;<:1_blue:1308123312001646673>]
$var[blue2;<:2_blue:1308144549859688489>]
$var[blue3;<:3_blue:1308132368787439638>]
$var[blue4;<:4_blue:1308148470288486440>]
$var[blue5;<:5_blue:1308144104483455086>]
$var[blue6;<:6_blue:1308148789265174580>]
$var[blue7;<:7_blue:1308147057072017448>]
$var[blue8;<:8_blue:1308149522022662235>]
$var[blue9;<:9_blue:1308151155376787537>]
$var[blue_skip;<:blue_skip:1308147406881161418>]
$var[blue_reverse;<:blue_reverse:1308133137586454671>]
$var[blue_draw2;<:blue_draw_2:1308132763508932638>]
$var[yellow0;<:0_yellow:1308152482974797968>]
$var[yellow1;<:1_yellow:1308144865254834197>]
$var[yellow2;<:2_yellow:1308126867802554419>]
$var[yellow3;<:3_yellow:1308147916959121459>]
$var[yellow4;<:4_yellow:1308150633928593530>]
$var[yellow5;<:5_yellow:1308130269185708133>]
$var[yellow6;<:6_yellow:1308153003060236358>]
$var[yellow7;<:7_yellow:1308158580926713886>]
$var[yellow8;<:8_yellow:1308150239252971530>]
$var[yellow9;<:9_yellow:1308157765096574978>]
$var[yellow_skip;<:skip_yellow:1308123822381076550>]
$var[yellow_reverse;<:reverse_yellow:1308124659446972518>]
$var[yellow_draw2;<:draw_2_yellow:1308124343607361576>]
$var[green0;<:0_green:1308128960525111296>]
$var[green1;<:1_green:1308127166814490694>]
$var[green2;<:2_green:1308146096228536381>]
$var[green3;<:3_green:1308161208590798858>]
$var[green4;<:4_green:1308131273604337795>]
$var[green5;<:5_green:1308125493911883776>]
$var[green6;<:6_green:1308146523519062036>]
$var[green7;<:7_green:1308134637091950623>]
$var[green8;<:8_green:1308131716971630622>]
$var[green9;<:9_green:1308125845319323688>]
$var[green_skip;<:skip_green:1308125164315086898>]
$var[green_reverse;<:reverse_green:1308128578193588274>]
$var[green_draw2;<:green_draw_2:1308174779072647238>]
$var[wild;<:wild:1308132047520534558>]
$var[wild_draw4;<:draw_4:1308128115683365015>]
$removeButtons
$nomention
$onlyIf[$getUserVar[uno_turn]==true;]
$textSplit[$customID;_]
$removeSplitTextElement[1]
$removeSplitTextElement[1]
$removeSplitTextElement[1]
$var[card;$joinSplitText[_]]
$c[Checking System]
$textSplit[$getUserVar[uno_pool;$getUserVar[uno_play]];,]
$var[cardon;$splitText[1]]
$var[cardon;$replaceText[$var[cardon];draw2;drawtwo;1]]
$if[$checkContains[$var[cardon];red]==true]
$var[color;red]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];red;;1]]
$elseif[$checkContains[$var[cardon];blue]==true]
$var[color;blue]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];blue;;1]]
$elseif[$checkContains[$var[cardon];yellow]==true]
$var[color;yellow]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];yellow;;1]]
$elseif[$checkContains[$var[cardon];green]==true]
$var[color;green]
$var[sym;$replaceText[$replaceText[$var[cardon];_;;-1];green;;1]]
$else
$var[color;$getUserVar[uno_wild]]
$var[sym;wild]
$endif
$enabled[$checkContains[$replaceText[$var[card];draw2;drawtwo:1];$var[color];$var[sym];wild];]
$enabled[$checkContains[$getUserVar[uno_deck];$var[card]];]
$c[^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Hier wurde eingefügt]
$if[$or[$var[card]==wild;$var[card]==wild_draw4]]
$var[msgid;$sendMessage[$username!
Choose a color for the wild card!;yes]]
$addButton[yes;uno_wild-green-$authorID;Green;success;;;$var[msgid]]
$addButton[yes;uno_wild-blue-$authorID;Blue;primary;;;$var[msgid]]
$addButton[yes;uno_wild-yellow-$authorID;Yellow;secondary;;;$var[msgid]]
$addButton[yes;uno_wild-red-$authorID;Red;danger;;;$var[msgid]]
$setUserVar[uno_wild;yes-$var[card]]
$stop
$endif
$sendMessage[$username played $var[$var[card]]]
$textSplit[$getUserVar[uno_deck];,]
$removeSplitTextElement[$getTextSplitIndex[$var[card]]]
$setUserVar[uno_deck;$joinSplitText[,]]
$setUserVar[uno_pool;$var[card],$getUserVar[uno_pool;$getUserVar[uno_play]];$getUserVar[uno_play]]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$var[num;$splitText[1]]
$var[mem;$splitText[2]]
$textSplit[$var[mem];,]
$var[numb;$getTextSplitIndex[$authorID]]
$c[REVERSE CARDS]
$if[$checkContains[$var[card];reverse]==true]
$sendMessage[$username used Reverse card!
Reversing the turn cycle...]
$setUserVar[uno_order;$multi[$getUserVar[uno_order;$getUserVar[uno_play]];-1];$getUserVar[uno_play]]
$endif
$c[Ab hier unten]
$if[$getUserVar[uno_order;$getUserVar[uno_play]]==1]
$if[$var[numb]==$var[num]]
$var[numb;1]
$else
$var[numb;$sum[$var[numb];$getUserVar[uno_order;$getUserVar[uno_play]]]]
$endif
$else
$if[$var[numb]==1]
$var[numb;$var[num]]
$else
$var[numb;$sum[$var[numb];$getUserVar[uno_order;$getUserVar[uno_play]]]]
$endif
$endif
$c[SKIPPING CARDS]
$if[$checkContains[$var[card];skip]==true]
$sendMessage[$username used turn-skipping card!
<@$splitText[$var[numb]]>'s turn was skipped!]
$if[$getUserVar[uno_order;$getUserVar[uno_play]]==1]
$if[$var[numb]==$var[num]]
$var[numb;1]
$else
$var[numb;$sum[$var[numb];$getUserVar[uno_order;$getUserVar[uno_play]]]]
$endif
$else
$if[$var[numb]==1]
$var[numb;$var[num]]
$else
$var[numb;$sum[$var[numb];$getUserVar[uno_order;$getUserVar[uno_play]]]]
$endif
$endif
$endif
$c[DRAW2 CARDS]
$if[$checkContains[$var[card];draw2]==true]
$sendMessage[$username used draw-2!
Adding 2 cards in deck of <@$splitText[$var[numb]]>!]
$var[TXT;$joinSplitText[,]]
$textSplit[$getUserVar[uno_left;$getUserVar[uno_play]];,]
$var[card1of;$splitText[$random[1;$getTextSplitLength]]]
$removeSplitTextElement[$getTextSplitIndex[$var[card1of]]]
$var[card2of;$splitText[$random[1;$getTextSplitLength]]]
$removeSplitTextElement[$getTextSplitIndex[$var[card2of]]]
$setUserVar[uno_left;$joinSplitText[,];$getUserVar[uno_play]]
$textSplit[$var[TXT];,]
$setUserVar[uno_deck;$getUserVar[uno_deck;$splitText[$var[numb]]],$var[card1of],$var[card2of];$splitText[$var[numb]]]
$endif
$setUserVar[uno_turn;false]
$setUserVar[uno_turn;true;$splitText[$var[numb]]]
$setUserVar[uno_wild;]
$replyIn[2s]
$var[id;$sendMessage[It's <@$splitText[$var[numb]]>'s turn now!;yes]]
$addButton[yes;uno_deck;See deck;primary;;;$var[id]]
$endif
$c[uno_play
________________________________________________________________________________________________________________________________________________________________________
uno_draw]
$if[$cropText[$customID;9;]==uno_draw_]
$if[$getUserVar[uno_draw]==]
$nomention
$onlyIf[$getUserVar[uno_turn]==true;]
$textSplit[$customID;_]
$onlyForIDs[$splitText[3];]
$var[host;$getUserVar[uno_play]]
$var[drawpile;$getUserVar[uno_left;$var[host]]]
$textSplit[$var[drawpile];,]
$var[cardgot;$splitText[$random[1;$getTextSplitLength]]]
$ephemeral
$addButton[yes;uno_deck;See Deck;primary;no;;$sendMessage[$username got a card!;yes]]
$description[You got $var[cardgot]!]
$removeAllComponents
$color[$getVar[color]]
$removeSplitTextElement[$getTextSplitIndex[$var[cardgot]]]
$setUserVar[uno_deck;$getUserVar[uno_deck],$var[cardgot]]
$setUserVar[uno_left;$joinSplitText[,];$var[host]]
$setUserVar[uno_draw;1]
$else
$setUserVar[uno_draw;]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$var[numbers;$splitText[1]]
$textSplit[$splitText[2];,]
$var[mynum;$getTextSplitIndex[$authorID]]
$if[$var[mynum]==$var[numbers]]
$var[nextnum;1]
$else
$var[nextnum;$sum[$var[mynum];1]]
$endif
$sendMessage[$username's card wasn't playable!
Shifting the turn to <@$splitText[$var[nextnum]]>.]
$addButton[yes;uno_deck;See Deck;primary;]
$removeAllComponents
$setUserVar[uno_turn;false]
$setUserVar[uno_turn;true;$splitText[$var[nextnum]]]
$cooldown[20s;]
$endif
$endif
$c[uno_draw _________________________________________________________________________________________________________________________________________________ uno_wild]
$if[$cropText[$customID;9;]==uno_wild-]
$textSplit[$customID;-]
$var[color;$splitText[2]]
$onlyForIDs[$splitText[3];]
$onlyIf[$getUserVar[uno_wild]!=;]
$textSplit[$getUserVar[uno_wild];-]
$var[card;$splitText[2]]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$var[nums;$splitText[1]]
$textSplit[$splitText[2];,]
$var[mynum;$getTextSplitIndex[$authorID]]
$if[$getUserVar[uno_order;$getUserVar[uno_play]]==1]
$if[$var[mynum]==$var[nums]]
$var[num;1]
$else
$var[num;$sum[$var[mynum];1]]
$endif
$else
$if[$var[mynum]==1]
$var[num;$var[nums]]
$else
$var[num;$sub[$var[mynum];1]]
$endif
$endif
$var[nextid;$splitText[$var[num]]]
$setUserVar[uno_turn;false]
$setUserVar[uno_turn;true;$splitText[$var[num]]]
$textSplit[$getUserVar[uno_deck];,]
$removeSplitTextElement[$getTextSplitIndex[$var[card]]]
$setUserVar[uno_deck;$joinSplitText[,]]
$setUserVar[uno_pool;$var[card],$getUserVar[uno_pool;$getUserVar[uno_play]];$getUserVar[uno_play]]
$textSplit[$getUserVar[uno_host;$getUserVar[uno_play]];&]
$textSplit[$splitText[2];,]
$setUserVar[uno_wild;$var[color];$splitText[$var[num]]]
$c[300---------------------------------------------------------------------------------------------------------------------------------------------------------------]
$if[$var[card]==wild_draw4]
$textSplit[$getUserVar[uno_left;$getUserVar[uno_play]];,]
$var[card1;$splitText[$random[1;$getTextSplitLength]]]
$c[308]
$removeSplitTextElement[$getTextSplitIndex[$var[card1]]]
$var[card2;$splitText[$random[1;$getTextSplitLength]]]
$removeSplitTextElement[$getTextSplitIndex[$var[card2]]]
$var[card3;$splitText[$random[1;$getTextSplitLength]]]
$removeSplitTextElement[$getTextSplitIndex[$var[card3]]]
$var[card4;$splitText[$random[1;$getTextSplitLength]]]
$removeSplitTextElement[$getTextSplitIndex[$var[card4]]]
$setUserVar[uno_left;$joinSplitText[,];$getUserVar[uno_play]]
$setUserVar[uno_deck;$getUserVar[uno_deck;$var[nextid]],$var[card1],$var[card2],$var[card3],$var[card4];$var[nextid]]
$sendMessage[Draw4: Added 4 cards in inventory of <@$var[nextid]>!]
$endif
$setUserVar[uno_wild;]
$addButton[yes;uno_deck;See Deck;primary;;;$sendMessage[$username used $var[card] with the color: $var[color]
It's <@$var[nextid]>'s turn now;yes]]
$endif
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
!help
$nomention
$title[Help - UNO Commands]
$description[
**`!start`**
*Start a round and offer other members the opportunity to join.*
**`!leave`**
*Leave a round.*
**`!kick`**
*Kick a user out of your round.*
**`!rules`**
*Shows you the rules of the game on which this code is based.*
]
$color[$getVar[color]]
$thumbnail[$authorAvatar]
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
!rules
$nomention
$title[UNO Rules]
$description[
**Discard cards:**
Players take turns discarding a card.
Your card must be either the same **color** or the same **number** as the top card of the discard pile.
If you can't discard, you **draw a card** from the draw pile.
- If the card you draw is playable, you can discard it immediately.
- Otherwise, you keep it.
**Special cards:**
There are cards with special effects:
- **Draw 2 (+2):** The next player must draw two cards and skip their turn.
- **Change of direction:** The direction of play is reversed.
- **Skip:** The next player is skipped.
- **Choose color:** You choose the next color to be played.
- **Draw 4 Choose color:** The next player must draw four cards, and you choose the color.
**End of the game:**
- One player wins the round by discarding all their cards.
- The remaining players count the points of their remaining cards (action cards have higher values) and credit them to the winner.
- The game is played in several rounds until one player reaches **500 points** – or you agree on a different score.]
$color[$getVar[color]]
$image[https://cdn.discordapp.com/attachments/1014172909448732774/1309550617093476372/uno-pc-spiel-ubisoft-connect-cover.jpg?ex=6741fd8d&is=6740ac0d&hm=8e3558e548778e5f60114e8982d15a9a4d5f42e9a065293d06b6da88800b057c&]
Thanks to yuraj_e4k for helping develop this system. 💖
Trigger: !help
$nomention
$c[Help Command - Displays all available commands and variables.]
$title[__📜 〣XP-System Help__]
$description[Here are all the available commands for the XP system:
> __**👥〣 User Commands:**__
🆙〣**!rank** - `Displays your current level and XP.`
🏆〣**!leaderboard** - `Shows the top users with the highest levels.`
🚀〣**!xpboost** - `Activate or deactivate an XP booster.`
> __**🛠️〣 Admin Commands:**__
🛠️〣**!setlevel <user> <level>** - `Sets a user's level.`
🔄〣**!toggle** - `Toggles the XP system on or off.`
💬〣**!setmsg <message>** - `Defines the level-up message.`
📢〣**!lvlchannel <channel>** - `Sets the channel for level-up messages.`
🚫〣**!blacklist <channel> <add/remove>** - `Sets channels where no XP is earned.`
🎖️〣**!setreward <@role> <level>** - `Sets a reward role given at a specific level.`
📜〣**!rewards** - `Displays all available reward roles.`
🚫〣**!removereward <@role>** - `Removes a reward role.`
🛡️〣**!roleprotection <@role>** - `Prevents users with a role from earning XP.`
🔄〣**!removeprotection** - `Removes the protected role.`
> __**📋〣 System Variables:**__
The system requires the following variables:
- `talk`: `Current XP of the user.`
- `req`: `Required XP to level up.`
- `level`: `Current level of the user.`
- `goal`: `User's target level.`
- `xpEnabled`: `Toggles the XP system on or off.`
- `xp_boost`: `Active XP multiplier.`
- `lvlchannel`: `Channel for level-up messages.`
- `protectedRole`: `Role that cannot earn XP.`
- `reward_1` to `reward_10`: `Roles assigned as rewards.`]
$footer[Available for users and admins]
$color[#1e00ff]
_______________________________________________________________________________________________________________________________________
Trigger: a
$nomention
$c[Automatic XP Gain with Protected Role - BDScript 2]
$varExistError[xpEnabled;The variable "xpEnabled" was not found. Please initialize it first.]
$varExistError[talk;The variable "talk" was not found. Please initialize it first.]
$varExistError[req;The variable "req" was not found. Please initialize it first.]
$varExistError[level;The variable "level" was not found. Please initialize it first.]
$varExistError[protectedRole;The variable "protectedRole" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2.]
$footer[Execution failed]
$color[#ff0000]
$else
$cooldown[2s;] $c[Sets a cooldown of 2 seconds without sending a message.]
$if[$getServerVar[xpEnabled]==true]
$if[$getServerVar[protectedRole]!=&&$hasRole[$authorID;$getServerVar[protectedRole]]==true]
$title[XP Blocked]
$description[You cannot earn XP while you have the role <@&$getServerVar[protectedRole]>.]
$footer[Protected Role Activated]
$color[#ff0000]
$else
$if[$getUserVar[lb_lastrank]==0]
$setUserVar[lb_lastrank;$getLeaderboardPosition[user;level;desc;$authorID]]
$endif
$setUserVar[talk;$sum[$getUserVar[talk];$multi[10;$getServerVar[xp_boost]]]]
$if[$getUserVar[talk]>=$getUserVar[req]]
$setUserVar[level;$sum[$getUserVar[level];1]]
$setUserVar[req;$sum[$getUserVar[req];$random[50;100]]]
$setUserVar[talk;0]
$title[🎉 Level-Up!]
$description[Congratulations, **$username**! You have reached level $getUserVar[level]!]
$footer[Keep it up!]
$color[#1e00ff]
$endif
$endif
$onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
$endif
$suppressErrors
$endif
$if[$sub[$getTimestamp;$getServerVar[lb_time]]>=604800]
$setServerVar[lb_time;$getTimestamp]
$resetUserVar[lb_lastrank]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !toggle
$nomention
$c[Toggle Command for the XP System - BDScript 2]
$varExistError[xpEnabled;The variable "xpEnabled" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$getServerVar[xpEnabled]==true]
$setServerVar[xpEnabled;false]
$title[XP System Disabled]
$description[The XP system has been successfully disabled.]
$footer[Successfully executed]
$color[#ff0000]
$else
$setServerVar[xpEnabled;true]
$title[XP System Enabled]
$description[The XP system has been successfully enabled.]
$footer[Successfully executed]
$color[#1e00ff]
$endif
$endif
_______________________________________________________________________________________________________________________________________
!blacklist
$nomention
$c[Blacklist Command for XP System - BDScript 2]
$varExistError[lvlblacklisted;The variable "lvlblacklisted" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$message[1]==add]
$setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted],$mentionedChannels[1]]
$title[Blacklist Added]
$description[The channel <#$mentionedChannels[1]> has been added to the blacklist. No XP will be granted in this channel.]
$footer[Successfully executed by $username]
$color[#ff0000]
$endif
$if[$message[1]==remove]
$setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];$mentionedChannels[1];]]
$title[Blacklist Removed]
$description[The channel <#$mentionedChannels[1]> has been removed from the blacklist. XP will now be granted in this channel.]
$footer[Successfully executed by $username]
$color[#1e00ff]
$endif
$onlyPerms[admin;Only administrators can modify the XP channel blacklist.]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !rank
$nomention
$c[Rank Command for the XP System with Image - BDScript 2]
$varExistError[level;The variable "level" was not found. Please initialize it first.]
$varExistError[talk;The variable "talk" was not found. Please initialize it first.]
$varExistError[req;The variable "req" was not found. Please initialize it first.]
$varExistError[custombg;The variable "custombg" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$isBot[$mentioned[1;yes]]==true]
$title[Error]
$description[Bots do not have levels. Please use this command with a human user.]
$footer[Execution failed]
$color[#ff0000]
$else
$var[currentXP;$getUserVar[talk;$mentioned[1;yes]]]
$var[requiredXP;$getUserVar[req;$mentioned[1;yes]]]
$var[level;$getUserVar[level;$mentioned[1;yes]]]
$title[📊 Rank of $username[$mentioned[1;yes]]]
$description[
**Level**: $var[level]
**XP**: $var[currentXP]/$var[requiredXP]
]
$image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]?size=4096;webp;jpg;-1]&level=$var[level]&rank=¤txp=$var[currentXP]&nextlevelxp=$var[requiredXP]&previouslevelxp=0&custombg=$replaceText[$getUserVar[custombg;$mentioned[1;yes]]; ;%20;-1]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
$footer[Requested by $username]
$color[#1e00ff]
$endif
$endif
_______________________________________________________________________________________________________________________________________
!setlevel
$nomention
$c[Setlevel Command for XP System - BDScript 2]
$varExistError[level;The variable "level" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$userExists[$mentioned[1]]==false]
$title[Error]
$description[The mentioned user does not exist. Please verify the input.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$isBot[$mentioned[1]]==true]
$title[Error]
$description[Bots cannot have levels. Please mention a valid user.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$isNumber[$noMentionMessage[2]]==false]
$title[Error]
$description[Please provide a valid number as the level.]
$footer[Execution failed]
$color[#ff0000]
$else
$setUserVar[level;$noMentionMessage[2];$mentioned[1]]
$title[Level Set]
$description[The level for <@$mentioned[1]> has been set to $noMentionMessage[2].]
$footer[Executed by $username]
$color[#1e00ff]
$endif
$endif
$endif
$onlyPerms[admin;Only administrators can set other users' levels.]
$endif
_______________________________________________________________________________________________________________________________________
!setmsg
$nomention
$c[Setmsg Command for XP System - BDScript 2]
$varExistError[levelmsg;The variable "levelmsg" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$setServerVar[levelmsg;$message]
$title[Level-Up Message Set]
$description[The level-up message has been successfully set. Example: `$message`]
$footer[Executed by $username]
$color[#1e00ff]
$onlyPerms[admin;Only administrators can set the level-up message.]
$endif
______________________________________________________________________________________________________________________________________
!lvlchannel
$nomention
$c[Lvlchannel Command for XP System - BDScript 2]
$varExistError[lvlchannel;The variable "lvlchannel" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$setServerVar[lvlchannel;$mentionedChannels[1]]
$title[Level-Up Channel Set]
$description[Level-up messages will now be sent in <#$mentionedChannels[1]>.]
$footer[Executed by $username]
$color[#1e00ff]
$onlyPerms[admin;Only administrators can set the level-up channel.]
$endif
_______________________________________________________________________________________________________________________________________
!leaderboard
$nomention
$c[Leaderboard Command for XP System - BDScript 2]
$varExistError[level;The variable "level" was not found. Please initialize it first.]
$varExistError[talk;The variable "talk" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$title[🏆 Server Leaderboard]
$var[1;$getLeaderboardValue[user;level;asc;1;id]]
$var[2;$getLeaderboardValue[user;level;asc;2;id]]
$var[3;$getLeaderboardValue[user;level;asc;3;id]]
$var[4;$getLeaderboardValue[user;level;asc;4;id]]
$var[5;$getLeaderboardValue[user;level;asc;5;id]]
$var[6;$getLeaderboardValue[user;level;asc;6;id]]
$var[7;$getLeaderboardValue[user;level;asc;7;id]]
$var[8;$getLeaderboardValue[user;level;asc;8;id]]
$var[9;$getLeaderboardValue[user;level;asc;9;id]]
$var[10;$getLeaderboardValue[user;level;asc;10;id]]
$var[num;1]
$try
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;2]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;3]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;4]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;5]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;6]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;7]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;8]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;9]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;10]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$endtry
$try
$description[
Here are the Top 10 users with the highest levels and XP on the server:
$addField[Rank 1;$username[$var[1]] - Level $getUserVar[level;$var[1]] $var[lb_emo1]]
$addField[Rank 2;$username[$var[2]] - Level $getUserVar[level;$var[2]] $var[lb_emo2]]
$addField[Rank 3;$username[$var[3]] - Level $getUserVar[level;$var[3]] $var[lb_emo3]]
$addField[Rank 4;$username[$var[4]] - Level $getUserVar[level;$var[4]] $var[lb_emo4]]
$addField[Rank 5;$username[$var[5]] - Level $getUserVar[level;$var[5]] $var[lb_emo5]]
$addField[Rank 6;$username[$var[6]] - Level $getUserVar[level;$var[6]] $var[lb_emo6]]
$addField[Rank 7;$username[$var[7]] - Level $getUserVar[level;$var[7]] $var[lb_emo7]]
$addField[Rank 8;$username[$var[8]] - Level $getUserVar[level;$var[8]] $var[lb_emo8]]
$addField[Rank 9;$username[$var[9]] - Level $getUserVar[level;$var[9]] $var[lb_emo9]]
$addField[Rank 10;$username[$var[10]] - Level $getUserVar[level;$var[10]] $var[lb_emo10]] ]
$endtry
$footer[Requested by $username]
$color[#1e00ff]
$endif
_______________________________________________________________________________________________________________________________________
!xpboost
$nomention
$c[XP Boost Command - Activate/Deactivate - BDScript 2]
$varExistError[xpEnabled;The variable "xpEnabled" was not found. Please initialize it first.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2.]
$footer[Execution failed]
$color[#ff0000]
$else
$cooldown[5s;] $c[Sets a cooldown of 5 seconds without sending a message.]
$if[$getServerVar[xp_boost]==2]
$description[The XP boost has been **deactivated**! You will no longer earn additional XP for messages.]
$color[#ff0000]
$setServerVar[xp_boost;1]
$else
$description[The XP boost has been **activated**! You will now earn additional XP for messages.]
$color[#1e00ff]
$setServerVar[xp_boost;2]
$endif
$endif
______________________________________________________________________________________________________________________________________
!setreward
$nomention
$c[Setreward Command - Assign Reward Roles - BDScript 2]
$onlyPerms[manageserver;**Error:** You need the "Manage Server" permission to use this command.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$message[1]==||$message[2]==]
$title[Error]
$description[Please provide both a role and a level. Example: `!setreward @Role 10`]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Error]
$description[The specified role does not exist. Please mention a valid role.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$isNumber[$message[2]]==false]
$title[Error]
$description[The specified level is invalid. Please provide a valid number. Example: `!setreward @Role 10`]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$getServerVar[reward_1]==]
$setServerVar[reward_1;$findRole[$message[1]]]
$setServerVar[reward_level_1;$message[2]]
$title[Reward Role Assigned]
$description[The role <@&$findRole[$message[1]]> will now be granted upon reaching level **$message[2]**.]
$footer[Executed by $username]
$color[#1e00ff]
$else
$title[Error]
$description[All 10 reward slots are already occupied. Please remove an existing reward to add a new one.]
$footer[Execution failed]
$color[#ff0000]
$endif
$endif
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
!rewards
$nomention
$c[Rewards Command - Displays all reward roles with their required level - BDScript 2]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$title[📜 Available Reward Roles]
$var[rewardList;]
$if[$getServerVar[reward_1]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_1]>** - Required Level: $getServerVar[reward_level_1]]
$endif
$if[$getServerVar[reward_2]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_2]>** - Required Level: $getServerVar[reward_level_2]]
$endif
$if[$getServerVar[reward_3]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_3]>** - Required Level: $getServerVar[reward_level_3]]
$endif
$if[$var[rewardList]==]
$description[No rewards have been set yet.]
$else
$description[$var[rewardList]]
$endif
$footer[Requested by $username]
$color[#1e00ff]
$endif
_______________________________________________________________________________________________________________________________________
!removereward
$nomention
$c[Removereward Command - Removes a reward role - BDScript 2]
$onlyPerms[manageserver;**Error:** You need the "Manage Server" permission to use this command.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$message[1]==]
$title[Error]
$description[Please provide a role to remove. Example: `!removereward @Role`]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Error]
$description[The specified role does not exist. Please mention a valid role.]
$footer[Execution failed]
$color[#ff0000]
$else
$var[foundSlot;false]
$if[$getServerVar[reward_1]==$findRole[$message[1]]]
$setServerVar[reward_1;]
$setServerVar[reward_level_1;]
$var[foundSlot;true]
$endif
$if[$getServerVar[reward_2]==$findRole[$message[1]]]
$setServerVar[reward_2;]
$setServerVar[reward_level_2;]
$var[foundSlot;true]
$endif
$if[$getServerVar[reward_3]==$findRole[$message[1]]]
$setServerVar[reward_3;]
$setServerVar[reward_level_3;]
$var[foundSlot;true]
$endif
$if[$var[foundSlot]==true]
$title[Reward Role Removed]
$description[The role <@&$findRole[$message[1]]> was successfully removed from the reward slots.]
$footer[Executed by $username]
$color[#1e00ff]
$else
$title[Error]
$description[The role <@&$findRole[$message[1]]> is not in any reward slot.]
$footer[Execution failed]
$color[#ff0000]
$endif
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger:!roleprotection
$nomention
$c[Set a protected role that cannot earn XP.]
$onlyPerms[manageserver;**Error:** You need the "Manage Server" permission to use this command.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$message[1]==]
$title[Error]
$description[Please specify a role to protect. Example: `!roleprotection @Muted`]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Error]
$description[The specified role does not exist. Please mention a valid role.]
$footer[Execution failed]
$color[#ff0000]
$else
$setServerVar[protectedRole;$findRole[$message[1]]]
$title[Protected Role Set]
$description[The role <@&$findRole[$message[1]]> is now protected. Users with this role cannot earn XP.]
$footer[Executed by $username]
$color[#1e00ff]
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !removeprotection
$nomention
$c[Remove the protected role.]
$onlyPerms[manageserver;**Error:** You need the "Manage Server" permission to use this command.]
$if[$scriptLanguage!=BDScript 2]
$title[Error]
$description[This code only works in BDScript 2. Please switch the script language to BDScript 2 to use this command.]
$footer[Execution failed]
$color[#ff0000]
$else
$if[$getServerVar[protectedRole]==]
$title[Error]
$description[No protected role is currently set.]
$footer[Execution failed]
$color[#ff0000]
$else
$setServerVar[protectedRole;]
$title[Protected Role Removed]
$description[There is no longer a protected role. All users can now earn XP.]
$footer[Executed by $username]
$color[#1e00ff]
$endif
$endif
Dank an yuraj_e4k für die Hilfe beim entwickeln dieses Systems. 💖
Trigger: !help
$nomention
$c[Hilfe-Befehl - Zeigt alle verfügbaren Befehle und Variablen an.]
$title[__📜 〣XP-System Hilfe__]
$description[Hier sind alle verfügbaren Befehle für das XP-System:
> __**👥〣 Nutzer-Befehle:**__
🆙〣**!rank** - `Zeigt dein aktuelles Level und deine XP.`
🏆〣**!leaderboard** - `Zeigt dir die Top-Nutzer mit dem höchsten Level.`
🚀〣**!xpboost** - `Aktiviere oder deaktiviere einen XP-Booster.`
> __**🛠️〣 Admin-Befehle:**__
🛠️〣**!setlevel <Benutzer> <Level>** - `Setzt das Level eines Benutzers.`
🔄〣**!toggle** - `Schaltet das XP-System ein oder aus.`
💬〣**!setmsg <Nachricht>** - `Definiert die Level-Up-Nachricht.`
📢〣**!lvlchannel <Kanal>** - `Definiert den Kanal für Level-Up-Nachrichten.`
🚫〣**!blacklist <Kanal> add/remove** - `Setzt Kanäle, in denen keine XP vergeben werden.`
🎖️〣**!setreward <@Rolle> <Level>** - `Setzt eine Belohnungsrolle.`
📜〣**!rewards** - `Zeigt alle verfügbaren Belohnungsrollen.`
🚫〣**!removereward <@Rolle>** - `Entfernt eine Belohnungsrolle.`
🛡️〣**!roleprotection <@Rolle>** - `Verhindert, dass Nutzer mit einer Rolle XP sammeln.`
🔄〣**!removeprotection** - `Entfernt die geschützte Rolle.`
> __**📋〣 System-Variablen:**__
Für das System sind folgende Variablen erforderlich:
- `talk`: `Aktuelle XP des Nutzers.`
- `req`: `Benötigte XP bis zum nächsten Level.`
- `level`: `Aktuelles Level des Nutzers.`
- `goal`: `Ziel-Level des Nutzers.`
- `xpEnabled`: `Schaltet das XP-System ein oder aus.`
- `xp_boost`: `Aktiver XP-Boost-Multiplikator.`
- `lvlchannel`: `Kanal für Level-Up-Nachrichten.`
- `protectedRole`: `Rolle, die keine XP sammeln kann.`
- `reward_1` bis `reward_10`: `Rollen, die als Belohnung vergeben werden.`]
$footer[Verfügbar für Nutzer und Admins]
$color[#1e00ff]
_______________________________________________________________________________________________________________________________________
Trigger: a
$nomention
$c[Automatischer XP-Zuwachs mit geschützter Rolle - BDScript 2]
$varExistError[xpEnabled;Die Variable "xpEnabled" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[talk;Die Variable "talk" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[req;Die Variable "req" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[level;Die Variable "level" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[protectedRole;Die Variable "protectedRole" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändere die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$cooldown[2s;] $c[Setzt einen Cooldown von 2 Sekunden, ohne Nachricht]
$if[$getServerVar[xpEnabled]==true]
$if[$getServerVar[protectedRole]!=&&$hasRole[$authorID;$getServerVar[protectedRole]]==true]
$title[XP blockiert]
$description[Du kannst keine XP sammeln, solange du die Rolle <@&$getServerVar[protectedRole]> besitzt.]
$footer[Geschützte Rolle aktiviert]
$color[#ff0000]
$else
$if[$getUserVar[lb_lastrank]==0]
$setUserVar[lb_lastrank;$getLeaderboardPosition[user;level;desc;$authorID]]
$endif
$setUserVar[talk;$sum[$getUserVar[talk];$multi[10;$getServerVar[xp_boost]]]]
$if[$getUserVar[talk]>=$getUserVar[req]]
$setUserVar[level;$sum[$getUserVar[level];1]]
$setUserVar[req;$sum[$getUserVar[req];$random[50;100]]]
$setUserVar[talk;0]
$title[🎉 Level-Up!]
$description[Herzlichen Glückwunsch, **$username**! Du hast Level $getUserVar[level] erreicht!]
$footer[Weiter so!]
$color[#1e00ff]
$endif
$endif
$onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
$endif
$suppressErrors
$endif
$if[$sub[$getTimestamp;$getServerVar[lb_time]]>=604800]
$setServerVar[lb_time;$getTimestamp]
$resetUserVar[lb_lastrank]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !toggle
$nomention
$c[Toggle-Befehl für das XP-System - BDScript 2]
$varExistError[xpEnabled;Die Variable "xpEnabled" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$getServerVar[xpEnabled]==true]
$setServerVar[xpEnabled;false]
$title[XP-System Deaktiviert]
$description[Das XP-System wurde erfolgreich deaktiviert.]
$footer[Erfolgreich ausgeführt]
$color[#ff0000]
$else
$setServerVar[xpEnabled;true]
$title[XP-System Aktiviert]
$description[Das XP-System wurde erfolgreich aktiviert.]
$footer[Erfolgreich ausgeführt]
$color[#1e00ff]
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !blacklist
$nomention
$c[Blacklist-Befehl für XP-System - BDScript 2]
$varExistError[xpEnabled;Die Variable "xpEnabled" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[lvlblacklisted;Die Variable "lvlblacklisted" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$message == "add"]
$setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted],$mentionedChannels[1]]
$title[Blacklist]
$description[Der Kanal <#$mentionedChannels[1]> wurde zur Schwarzen Liste hinzugefügt. In diesem Kanal wird keine XP mehr vergeben.]
$footer[Erfolgreich ausgeführt]
$color[#ff0000]
$endif
$if[$message == "remove"]
$setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];$mentionedChannels[1];]]
$title[Whitelist]
$description[Der Kanal <#$mentionedChannels[1]> wurde aus der Schwarzen Liste entfernt. In diesem Kanal wird nun wieder XP vergeben.]
$footer[Erfolgreich ausgeführt]
$color[#1e00ff]
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !rank
$nomention
$c[Rank-Befehl für das XP-System mit Bild - BDScript 2]
$varExistError[level;Die Variable "level" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[talk;Die Variable "talk" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[req;Die Variable "req" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[custombg;Die Variable "custombg" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$isBot[$mentioned[1;yes]]==true]
$title[Fehler]
$description[Bots haben kein Level. Bitte benutze den Befehl mit einem menschlichen Nutzer.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$var[currentXP;$getUserVar[talk;$mentioned[1;yes]]]
$var[requiredXP;$getUserVar[req;$mentioned[1;yes]]]
$var[level;$getUserVar[level;$mentioned[1;yes]]]
$title[📊 Rang von $username[$mentioned[1;yes]]]
$description[
**Level**: $var[level]
**XP**: $var[currentXP]/$var[requiredXP]
]
$image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]?size=4096;webp;jpg;-1]&level=$var[level]&rank=¤txp=$var[currentXP]&nextlevelxp=$var[requiredXP]&previouslevelxp=0&custombg=$replaceText[$getUserVar[custombg;$mentioned[1;yes]]; ;%20;-1]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
$footer[Angefordert von $username]
$color[#1e00ff]
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !setlevel
$nomention
$c[Setlevel-Befehl für das XP-System - BDScript 2]
$varExistError[level;Die Variable "level" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$userExists[$mentioned[1]]==false]
$title[Fehler]
$description[Der erwähnte Nutzer existiert nicht. Bitte überprüfen Sie die Eingabe.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$isBot[$mentioned[1]]==true]
$title[Fehler]
$description[Bots können kein Level haben. Bitte erwähnen Sie einen gültigen Nutzer.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$isNumber[$noMentionMessage[2]]==false]
$title[Fehler]
$description[Bitte geben Sie eine gültige Zahl als Level an.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$setUserVar[level;$noMentionMessage[2];$mentioned[1]]
$title[Level gesetzt]
$description[Das Level für <@$mentioned[1]> wurde auf $noMentionMessage[2] gesetzt.]
$footer[Erfolgreich ausgeführt von $username]
$color[#1e00ff]
$endif
$endif
$endif
$onlyPerms[admin;Nur Administratoren können das Level anderer Benutzer setzen.]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !setmsg
$nomention
$c[Setmsg-Befehl für das XP-System - BDScript 2]
$varExistError[levelmsg;Die Variable "levelmsg" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$setServerVar[levelmsg;$message]
$title[Level-Up-Nachricht gesetzt]
$description[Die Nachricht beim Level-Up wurde erfolgreich gesetzt. Beispiel: `$message`]
$footer[Erfolgreich ausgeführt von $username]
$color[#1e00ff]
$onlyPerms[admin;Nur Administratoren können die Level-Up-Nachricht setzen.]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !lvlchannel
$nomention
$c[Lvlchannel-Befehl für das XP-System - BDScript 2]
$varExistError[lvlchannel;Die Variable "lvlchannel" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$setServerVar[lvlchannel;$mentionedChannels[1]]
$title[Level-Up-Kanal gesetzt]
$description[Level-Up-Nachrichten werden nun in <#$mentionedChannels[1]> gesendet.]
$footer[Erfolgreich ausgeführt von $username]
$color[#1e00ff]
$onlyPerms[admin;Nur Administratoren können den Level-Up-Kanal festlegen.]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !blacklist
$nomention
$c[Blacklist-Befehl für das XP-System - BDScript 2]
$varExistError[lvlblacklisted;Die Variable "lvlblacklisted" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$message[1] == "add"]
$setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted],$mentionedChannels[1]]
$title[Blacklist hinzugefügt]
$description[Der Kanal <#$mentionedChannels[1]> wurde zur Schwarzen Liste hinzugefügt. In diesem Kanal wird keine XP mehr vergeben.]
$footer[Erfolgreich ausgeführt von $username]
$color[#ff0000]
$endif
$if[$message[1] == "remove"]
$setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];$mentionedChannels[1];]]
$title[Blacklist entfernt]
$description[Der Kanal <#$mentionedChannels[1]> wurde aus der Schwarzen Liste entfernt. In diesem Kanal wird nun wieder XP vergeben.]
$footer[Erfolgreich ausgeführt von $username]
$color[#1e00ff]
$endif
$onlyPerms[admin;Nur Administratoren können die Blacklist für XP-Kanäle bearbeiten.]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !leaderboard
$nomention
$c[Leaderboard-Befehl für das XP-System - BDScript 2]
$varExistError[level;Die Variable "level" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$varExistError[talk;Die Variable "talk" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$title[🏆 Server Leaderboard]
$var[1;$getLeaderboardValue[user;level;asc;1;id]]
$var[2;$getLeaderboardValue[user;level;asc;2;id]]
$var[3;$getLeaderboardValue[user;level;asc;3;id]]
$var[4;$getLeaderboardValue[user;level;asc;4;id]]
$var[5;$getLeaderboardValue[user;level;asc;5;id]]
$var[6;$getLeaderboardValue[user;level;asc;6;id]]
$var[7;$getLeaderboardValue[user;level;asc;7;id]]
$var[8;$getLeaderboardValue[user;level;asc;8;id]]
$var[9;$getLeaderboardValue[user;level;asc;9;id]] $var[10;$getLeaderboardValue[user;level;asc;10;id]]
$var[num;1]
$try
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;2]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;3]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;4]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;5]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;6]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;7]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;8]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;9]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$var[num;10]
$if[$getUserVar[lb_lastrank;$var[$var[num]]]==$var[num]]
$var[lb_emo$var[num];⏸️]$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]>=$var[num]]
$var[lb_emo$var[num];🔼 $sub[$getUserVar[lb_lastrank;$var[$var[num]]];$var[num]]]
$elseif[$getUserVar[lb_lastrank;$var[$var[num]]]<=$var[num]]
$var[lb_emo$var[num];🔽 $sub[$var[num];$getUserVar[lb_lastrank;$var[$var[num]]]]]
$endif
$endtry
$try
$description[
Hier sind die Top 10 Nutzer mit den höchsten Leveln und XP auf dem Server:
$addField[Rank 1;$username[$var[1]] - Level $getUserVar[level;$var[1]] $var[lb_emo1]]
$addField[Rank 2;$username[$var[2]] - Level $getUserVar[level;$var[2]] $var[lb_emo2]]
$addField[Rank 3;$username[$var[3]] - Level $getUserVar[level;$var[3]] $var[lb_emo3]]
$addField[Rank 4;$username[$var[4]] - Level $getUserVar[level;$var[4]] $var[lb_emo4]]
$addField[Rank 5;$username[$var[5]] - Level $getUserVar[level;$var[5]] $var[lb_emo5]]
$addField[Rank 6;$username[$var[6]] - Level $getUserVar[level;$var[6]] $var[lb_emo6]]
$addField[Rank 7;$username[$var[7]] - Level $getUserVar[level;$var[7]] $var[lb_emo7]]
$addField[Rank 8;$username[$var[8]] - Level $getUserVar[level;$var[8]] $var[lb_emo8]]
$addField[Rank 9;$username[$var[9]] - Level $getUserVar[level;$var[9]] $var[lb_emo9]]
$addField[Rank 10;$username[$var[10]] - Level $getUserVar[level;$var[10]] $var[lb_emo10]] ]
$endtry
$footer[Angefordert von $username]
$color[#1e00ff]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !xpboost
$nomention
$c[XP Boost aktivieren/deaktivieren - BDScript 2]
$varExistError[xpEnabled;Die Variable "xpEnabled" wurde nicht gefunden. Bitte initialisieren Sie diese Variable zuerst.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2, um diesen Befehl zu verwenden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$cooldown[5s;] $c[Setzt einen Cooldown von 5 Sekunden, ohne Nachricht]
$c[Überprüfen, ob der Boost aktiviert oder deaktiviert ist]
$if[$getServerVar[xp_boost]==2]
$c[Boost deaktivieren]
$description[Der XP Boost wurde **deaktiviert**! Du erhältst jetzt keine zusätzlichen XP mehr für Nachrichten.]
$color[#ff0000]
$setServerVar[xp_boost;1]
$elseif[$getServerVar[xp_boost]==1]
$c[Boost aktivieren]
$description[Der XP Boost wurde **aktiviert**! Du erhältst jetzt zusätzliche XP für Nachrichten.]
$color[#1e00ff]
$setServerVar[xp_boost;2]
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !setreward
$nomention
$c[Setreward-Befehl - Belohnungsrollen festlegen - BDScript 2]
$onlyPerms[manageserver;**Fehler:** Du benötigst die Berechtigung "Server verwalten", um diesen Befehl zu verwenden.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$message[1]==||$message[2]==]
$title[Fehler]
$description[Bitte gib sowohl eine Rolle als auch ein Level an. Beispiel: `!setreward @Rolle 10`]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Fehler]
$description[Die angegebene Rolle existiert nicht. Bitte erwähne eine gültige Rolle.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$isNumber[$message[2]]==false]
$title[Fehler]
$description[Das angegebene Level ist ungültig. Bitte gib eine gültige Zahl ein. Beispiel: `!setreward @Rolle 10`]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$getServerVar[reward_1]==]
$setServerVar[reward_1;$findRole[$message[1]]]
$setServerVar[reward_level_1;$message[2]]
$title[Belohnungsrolle festgelegt]
$description[Die Rolle <@&$findRole[$message[1]]> wird jetzt bei Erreichen von Level **$message[2]** vergeben.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$else
$if[$getServerVar[reward_2]==]
$setServerVar[reward_2;$findRole[$message[1]]]
$setServerVar[reward_level_2;$message[2]]
$title[Belohnungsrolle festgelegt]
$description[Die Rolle <@&$findRole[$message[1]]> wird jetzt bei Erreichen von Level **$message[2]** vergeben.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$else
$if[$getServerVar[reward_3]==]
$setServerVar[reward_3;$findRole[$message[1]]]
$setServerVar[reward_level_3;$message[2]]
$title[Belohnungsrolle festgelegt]
$description[Die Rolle <@&$findRole[$message[1]]> wird jetzt bei Erreichen von Level **$message[2]** vergeben.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$else
$title[Fehler]
$description[Es sind bereits alle 10 Belohnungsslots belegt. Bitte entferne eine bestehende Belohnung, um eine neue hinzuzufügen.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$endif
$endif
$endif
$endif
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !rewards
$nomention
$c[Rewards-Befehl - Zeigt alle Belohnungsrollen mit benötigtem Level an - BDScript 2]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$title[📜 Verfügbare Belohnungsrollen]
$var[rewardList;]
$if[$getServerVar[reward_1]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_1]>** - Benötigtes Level: $getServerVar[reward_level_1]]
$endif
$if[$getServerVar[reward_2]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_2]>** - Benötigtes Level: $getServerVar[reward_level_2]]
$endif
$if[$getServerVar[reward_3]!=]
$var[rewardList;$var[rewardList]**<@&$getServerVar[reward_3]>** - Benötigtes Level: $getServerVar[reward_level_3]]
$endif
$if[$var[rewardList]==]
$description[Es wurden noch keine Belohnungen festgelegt.]
$else
$description[$var[rewardList]]
$endif
$footer[Angefordert von $username]
$color[#1e00ff]
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !removereward
$nomention
$c[Removereward-Befehl - Entfernt eine Belohnungsrolle - BDScript 2]
$onlyPerms[manageserver;**Fehler:** Du benötigst die Berechtigung "Server verwalten", um diesen Befehl zu verwenden.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändern Sie die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$message[1]==]
$title[Fehler]
$description[Bitte gib eine Rolle an, die entfernt werden soll. Beispiel: `!removereward @Rolle`]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Fehler]
$description[Die angegebene Rolle existiert nicht. Bitte erwähne eine gültige Rolle.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$var[foundSlot;false]
$if[$getServerVar[reward_1]==$findRole[$message[1]]]
$setServerVar[reward_1;]
$setServerVar[reward_level_1;]
$var[foundSlot;true]
$endif
$if[$getServerVar[reward_2]==$findRole[$message[1]]]
$setServerVar[reward_2;]
$setServerVar[reward_level_2;]
$var[foundSlot;true]
$endif
$if[$getServerVar[reward_3]==$findRole[$message[1]]]
$setServerVar[reward_3;]
$setServerVar[reward_level_3;]
$var[foundSlot;true]
$endif
$if[$var[foundSlot]==true]
$title[Belohnungsrolle entfernt]
$description[Die Rolle <@&$findRole[$message[1]]> wurde erfolgreich aus den Belohnungsslots entfernt.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$else
$title[Fehler]
$description[Die Rolle <@&$findRole[$message[1]]> ist in keinem Belohnungsslot vorhanden.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$endif
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !roleprotection
$nomention
$c[Setze eine geschützte Rolle, die keine XP sammeln kann.]
$onlyPerms[manageserver;**Fehler:** Du benötigst die Berechtigung "Server verwalten", um diesen Befehl zu verwenden.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändere die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$message[1]==]
$title[Fehler]
$description[Bitte gib eine Rolle an, die geschützt werden soll. Beispiel: `!roleprotection @Muted`]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$roleExists[$findRole[$message[1]]]==false]
$title[Fehler]
$description[Die angegebene Rolle existiert nicht. Bitte erwähne eine gültige Rolle.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$setServerVar[protectedRole;$findRole[$message[1]]]
$title[Geschützte Rolle gesetzt]
$description[Die Rolle <@&$findRole[$message[1]]> ist nun geschützt. Nutzer mit dieser Rolle können keine XP sammeln.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$endif
$endif
$endif
_______________________________________________________________________________________________________________________________________
Trigger: !removeprotection
$nomention
$c[Entferne die geschützte Rolle.]
$onlyPerms[manageserver;**Fehler:** Du benötigst die Berechtigung "Server verwalten", um diesen Befehl zu verwenden.]
$if[$scriptLanguage!=BDScript 2]
$title[Fehler]
$description[Dieser Code funktioniert nur in BDScript 2. Bitte ändere die Skriptsprache zu BDScript 2.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$if[$getServerVar[protectedRole]==]
$title[Fehler]
$description[Es ist aktuell keine geschützte Rolle festgelegt.]
$footer[Ausführung fehlgeschlagen]
$color[#ff0000]
$else
$setServerVar[protectedRole;]
$title[Geschützte Rolle entfernt]
$description[Es ist keine geschützte Rolle mehr festgelegt. Alle Nutzer können wieder XP sammeln.]
$footer[Ausgeführt von $username]
$color[#1e00ff]
$endif
$endif
$nomention
$c[Einstellungen]
$var[neutral-color;1e00ff]
$var[success-color;00ff89]
$var[error-color;ff0000]
$var[level;normal] $c[Standard-Schwierigkeitsgrad]
$var[game_active;false] $c[Indikator für aktives Spiel]
$c[Überprüfe, ob alle benötigten Variablen existieren]
$if[$varExists[points]==false]
$sendEmbedMessage[$channelID;;Fehler;;Fehler: Die Variable „points“ existiert nicht! Bitte erstelle diese Variable und versuche es erneut.;$var[error-color]]
$stop
$endif
$if[$varExists[bot_points]==false]
$sendEmbedMessage[$channelID;;Fehler;;Fehler: Die Variable „bot_points“ existiert nicht! Bitte erstelle diese Variable und versuche es erneut.;$var[error-color]]
$stop
$endif
$if[$varExists[game_active]==false]
$sendEmbedMessage[$channelID;;Fehler;;Fehler: Die Variable „game_active“ existiert nicht! Bitte erstelle diese Variable und versuche es erneut.;$var[error-color]]
$stop
$endif
$if[$varExists[level]==false]
$sendEmbedMessage[$channelID;;Fehler;;Fehler: Die Variable „level“ existiert nicht! Bitte erstelle diese Variable und versuche es erneut.;$var[error-color]]
$stop
$endif
$if[$message==start]
$setUserVar[points;0] $c[Setzt die Punkte des Spielers auf 0]
$setUserVar[bot_points;0] $c[Setzt die Punkte des Bots auf 0]
$var[game_active;true] $c[Spiel ist aktiv]
$sendEmbedMessage[$channelID;;Chicago - Würfelspiel;;Das Spiel beginnt! Ziel ist es, als Erster 10.000 Punkte zu erreichen. Gib **!roll** ein, um zu würfeln. Gib **!help** ein, um die Spielregeln anzuzeigen.;$var[neutral-color]]
$endif
$if[$message==end]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$var[game_active;false] $c[Spiel ist beendet]
$sendEmbedMessage[$channelID;;Spiel beendet;;Das aktuelle Spiel wurde beendet. Starte ein neues Spiel mit **!start**.;$var[error-color]]
$endif
$if[$message==roll]
$if[$getVar[game_active]==false]
$sendEmbedMessage[$channelID;;Spielstatus;;Das Spiel ist beendet. Starte eine neue Runde mit **!start**.;$var[error-color]]
$stop
$endif
$var[round_points;0]
$c[Würfel einzeln werfen und speichern]
$if[$var[level]==schwierig]
$var[dice1;$optOff[$randomChoice[2,3,4,5,6,6]]]
$var[dice2;$optOff[$randomChoice[3,4,5,6,6]]]
$var[dice3;$optOff[$randomChoice[4,5,6,6]]]
$var[dice4;$optOff[$randomChoice[3,4,5,6]]]
$var[dice5;$optOff[$randomChoice[4,5,6]]]
$var[dice6;$optOff[$randomChoice[5,6,6]]]
$else
$var[dice1;$optOff[$random[1;6]]]
$var[dice2;$optOff[$random[1;6]]]
$var[dice3;$optOff[$random[1;6]]]
$var[dice4;$optOff[$random[1;6]]]
$var[dice5;$optOff[$random[1;6]]]
$var[dice6;$optOff[$random[1;6]]]
$endif
$sendEmbedMessage[$channelID;;Wurf Ergebnis;;🎲($var[dice1]) 🎲($var[dice2]) 🎲($var[dice3]) 🎲($var[dice4]) 🎲($var[dice5]) 🎲($var[dice6]);$var[neutral-color]]
$c[Punkteberechnung Abschnitt]
$var[round_points;0]
$c[Zähle die Anzahl der jeweiligen Würfelzahlen und setze sie immer auf 0]
$setVar[count1;0]
$setVar[count2;0]
$setVar[count3;0]
$setVar[count4;0]
$setVar[count5;0]
$setVar[count6;0]
$c[Erhöhe die Zähler entsprechend der geworfenen Werte]
$if[$var[dice1]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice1]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice1]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice1]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice1]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice1]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$if[$var[dice2]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice2]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice2]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice2]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice2]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice2]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$if[$var[dice3]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice3]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice3]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice3]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice3]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice3]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$if[$var[dice4]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice4]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice4]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice4]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice4]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice4]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$if[$var[dice5]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice5]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice5]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice5]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice5]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice5]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$if[$var[dice6]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice6]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice6]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice6]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice6]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice6]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
$c[Anwendung des Punktesystems]
$if[$getVar[count1]>=3]
$var[round_points;$sum[$var[round_points];1000]]
$setVar[count1;$sub[$getVar[count1];3]]
$endif
$if[$getVar[count2]>=3]
$var[round_points;$sum[$var[round_points];200]]
$setVar[count2;$sub[$getVar[count2];3]]
$endif
$if[$getVar[count3]>=3]
$var[round_points;$sum[$var[round_points];300]]
$setVar[count3;$sub[$getVar[count3];3]]
$endif
$if[$getVar[count4]>=3]
$var[round_points;$sum[$var[round_points];400]]
$setVar[count4;$sub[$getVar[count4];3]]
$endif
$if[$getVar[count5]>=3]
$var[round_points;$sum[$var[round_points];500]]
$setVar[count5;$sub[$getVar[count5];3]]
$endif
$if[$getVar[count6]>=3]
$var[round_points;$sum[$var[round_points];600]]
$setVar[count6;$sub[$getVar[count6];3]]
$endif
$c[Punkte für Einzelwerte hinzufügen]
$var[round_points;$sum[$var[round_points];$multi[$getVar[count1];100]]]
$var[round_points;$sum[$var[round_points];$multi[$getVar[count5];50]]]
$c[Rundenergebnis anzeigen und Punkte aktualisieren]
$setUserVar[points;$sum[$getUserVar[points];$var[round_points]]]
$c[Überprüfen, ob der Spieler gewonnen hat]
$if[$getUserVar[points]>=10000]
$var[game_active;false]
$sendEmbedMessage[$channelID;;Glückwunsch!;;🎉 Du hast die 10.000-Punkte-Marke erreicht und das Spiel gewonnen!;$var[success-color]]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$stop
$endif
$sendEmbedMessage[$channelID;;Rundenergebnis;;Würfel: 🎲($var[dice1]) 🎲($var[dice2]) 🎲($var[dice3]) 🎲($var[dice4]) 🎲($var[dice5]) 🎲($var[dice6])
> Aktuelle Punkte dieser Runde: $var[round_points]
> Gesamtpunkte: $getUserVar[points];$var[neutral-color]]
$endif
$if[$message==punkte]
$c[Fortschrittsbalken für Spieler basierend auf 10.000 Punkten]
$var[player_progress;$round[$divide[$multi[$getUserVar[points];10];10000];0]]
$var[player_progress_bar;◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️]
$if[$var[player_progress]>=1] $var[player_progress_bar;🟦◻️◻️◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=2] $var[player_progress_bar;🟦🟦◻️◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=3] $var[player_progress_bar;🟦🟦🟦◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=4] $var[player_progress_bar;🟦🟦🟦🟦◻️◻️◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=5] $var[player_progress_bar;🟦🟦🟦🟦🟦◻️◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=6] $var[player_progress_bar;🟦🟦🟦🟦🟦🟦◻️◻️◻️◻️] $endif
$if[$var[player_progress]>=7] $var[player_progress_bar;🟦🟦🟦🟦🟦🟦🟦◻️◻️◻️] $endif
$if[$var[player_progress]>=8] $var[player_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦◻️◻️] $endif
$if[$var[player_progress]>=9] $var[player_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦🟦◻️] $endif
$if[$var[player_progress]>=10] $var[player_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦] $endif
$c[Fortschrittsbalken für Bot basierend auf 10.000 Punkten]
$var[bot_progress;$round[$divide[$multi[$getUserVar[bot_points];10];10000];0]]
$var[bot_progress_bar;◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️]
$if[$var[bot_progress]>=1] $var[bot_progress_bar;🟦◻️◻️◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=2] $var[bot_progress_bar;🟦🟦◻️◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=3] $var[bot_progress_bar;🟦🟦🟦◻️◻️◻️◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=4] $var[bot_progress_bar;🟦🟦🟦🟦◻️◻️◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=5] $var[bot_progress_bar;🟦🟦🟦🟦🟦◻️◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=6] $var[bot_progress_bar;🟦🟦🟦🟦🟦🟦◻️◻️◻️◻️] $endif
$if[$var[bot_progress]>=7] $var[bot_progress_bar;🟦🟦🟦🟦🟦🟦🟦◻️◻️◻️] $endif
$if[$var[bot_progress]>=8] $var[bot_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦◻️◻️] $endif
$if[$var[bot_progress]>=9] $var[bot_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦🟦◻️] $endif
$if[$var[bot_progress]>=10] $var[bot_progress_bar;🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦] $endif
$sendEmbedMessage[$channelID;;Punkteübersicht;;> **Deine Punkte**: $getUserVar[points] $var[player_progress_bar]
> **Bot Punkte**: $getUserVar[bot_points] $var[bot_progress_bar];$var[neutral-color]]
$endif
$if[$message==take]
$if[$getVar[game_active]==false]
$sendEmbedMessage[$channelID;;Spielstatus;;Das Spiel ist beendet. Starte eine neue Runde mit **!start**.;$var[error-color]]
$stop
$endif
$sendEmbedMessage[$channelID;;Punkte gesichert;;Du hast deine Punkte gesichert und deinen Zug beendet. Der Bot ist an der Reihe!;$var[neutral-color]]
$c[Generiere zufällige Punkte für den Bot und addiere sie korrekt zu seinem Punktestand]
$if[$var[level]==schwierig]
$var[bot_round_points;$random[300;700]]
$else
$var[bot_round_points;$random[50;151]]
$endif
$setUserVar[bot_points;$sum[$getUserVar[bot_points];$var[bot_round_points]]]
$c[Prüfe, ob der Bot gewonnen hat]
$if[$getUserVar[bot_points]>=10000]
$var[game_active;false]
$sendEmbedMessage[$channelID;;Bot gewinnt das Spiel;;Der Bot hat 10.000 Punkte erreicht und gewinnt das Spiel. Versuche es nochmal!;$var[error-color]]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$stop
$else
$sendEmbedMessage[$channelID;;Bot zieht Punkte;;Der Bot hat jetzt insgesamt $getUserVar[bot_points] Punkte gesammelt (neue Punkte: $var[bot_round_points]). Dein Zug!;$var[neutral-color]]
$endif
$endif
$if[$message==help]
$title[📖 Chicago - Spielregeln 📖]
$description[Ziel: Erreiche vor dem Bot die **10.000** Punkte
**Befehle:**
**!start**: Startet das Spiel
**!roll**: Würfelt und versucht Punkte zu sammeln
**!take**: Sichert deine Punkte und beendet deinen Zug
**!punkte**: Zeigt die aktuellen Punkte von dir und dem Bot an
**!end**: Beendet das aktuelle Spiel
**!level** {leicht, normal, schwierig} : Setzt die Schwierigkeit des Bots
Punktesystem:
- 1 gewürfelt = 100 Punkte
- 5 gewürfelt = 50 Punkte
- Dreimal die gleiche Zahl (z. B. 4,4,4) = Zahl mal 100
- Dreimal eine Eins = **1.000 Punkte**
Falls du keine Punkte würfelst, verlierst du die Punkte dieser Runde, und der Bot ist an der Reihe.]
$color[$var[neutral-color]]
$endif
$if[$message==level]
$sendEmbedMessage[$channelID;;Fehlender Schwierigkeitsgrad;;Bitte nutze **!level <Schwierigkeit>**. Verfügbare Optionen:
leicht 🟢,
normal 🟡,
schwierig 🔴.;$var[error-color]]
$endif
$if[$message==level leicht]
$var[level;leicht]
$sendEmbedMessage[$channelID;;Schwierigkeitsgrad;;Der Schwierigkeitsgrad wurde auf Leicht 🟢 gesetzt.;$var[neutral-color]]
$endif
$if[$message==level normal]
$var[level;normal]
$sendEmbedMessage[$channelID;;Schwierigkeitsgrad;;Der Schwierigkeitsgrad wurde auf Normal 🟡 gesetzt.;$var[neutral-color]]
$endif
$if[$message==level schwierig]
$var[level;schwierig]
$sendEmbedMessage[$channelID;;Schwierigkeitsgrad;;Der Schwierigkeitsgrad wurde auf Schwierig 🔴 gesetzt. Der Bot erhält jetzt einen Punkteschub!;$var[neutral-color]]
$endif
$nomention
$c[Settings]
$var[neutral-color;1e00ff]
$var[success-color;00ff89]
$var[error-color;ff0000]
$var[level;normal] $c[Default difficulty level]
$var[game_active;false] $c[Indicator for active game]
$c[Check if all necessary variables exist]
$if[$varExists[points]==false]
$sendEmbedMessage[$channelID;;Error;;Error: The variable “points” does not exist! Please create this variable and try again.;$var[error-color]]
$stop
$endif
$if[$varExists[bot_points]==false]
$sendEmbedMessage[$channelID;;Error;;Error: The variable “bot_points” does not exist! Please create this variable and try again.;$var[error-color]]
$stop
$endif
$if[$varExists[game_active]==false]
$sendEmbedMessage[$channelID;;Error;;Error: The variable “game_active” does not exist! Please create this variable and try again.;$var[error-color]]
$stop
$endif
$if[$varExists[level]==false]
$sendEmbedMessage[$channelID;;Error;;Error: The variable “level” does not exist! Please create this variable and try again.;$var[error-color]]
$stop
$endif
$if[$message==start]
$setUserVar[points;0] $c[Sets player’s points to 0]
$setUserVar[bot_points;0] $c[Sets bot’s points to 0]
$var[game_active;true] $c[Game is active]
$sendEmbedMessage[$channelID;;Chicago - Dice Game;;The game begins! The goal is to reach 10,000 points first. Enter **!roll** to roll the dice. Enter **!help** to view the game rules.;$var[neutral-color]]
$endif
$if[$message==end]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$var[game_active;false] $c[Game is ended]
$sendEmbedMessage[$channelID;;Game Ended;;The current game has been ended. Start a new game with **!start**.;$var[error-color]]
$endif
$if[$message==roll]
$if[$getVar[game_active]==false]
$sendEmbedMessage[$channelID;;Game Status;;The game is over. Start a new round with **!start**.;$var[error-color]]
$stop
$endif
$var[round_points;0]
$c[Roll individual dice and save them]
$if[$var[level]==difficult]
$var[dice1;$optOff[$randomChoice[2,3,4,5,6,6]]]
$var[dice2;$optOff[$randomChoice[3,4,5,6,6]]]
$var[dice3;$optOff[$randomChoice[4,5,6,6]]]
$var[dice4;$optOff[$randomChoice[3,4,5,6]]]
$var[dice5;$optOff[$randomChoice[4,5,6]]]
$var[dice6;$optOff[$randomChoice[5,6,6]]]
$else
$var[dice1;$optOff[$random[1;6]]]
$var[dice2;$optOff[$random[1;6]]]
$var[dice3;$optOff[$random[1;6]]]
$var[dice4;$optOff[$random[1;6]]]
$var[dice5;$optOff[$random[1;6]]]
$var[dice6;$optOff[$random[1;6]]]
$endif
$sendEmbedMessage[$channelID;;Roll Result;;🎲($var[dice1]) 🎲($var[dice2]) 🎲($var[dice3]) 🎲($var[dice4]) 🎲($var[dice5]) 🎲($var[dice6]);$var[neutral-color]]
$c[Points calculation section]
$var[round_points;0]
$c[Count each dice number and set it to 0 initially]
$setVar[count1;0]
$setVar[count2;0]
$setVar[count3;0]
$setVar[count4;0]
$setVar[count5;0]
$setVar[count6;0]
$c[Increase counters based on rolled values]
$if[$var[dice1]==1] $setVar[count1;$sum[$getVar[count1];1]] $endif
$if[$var[dice1]==2] $setVar[count2;$sum[$getVar[count2];1]] $endif
$if[$var[dice1]==3] $setVar[count3;$sum[$getVar[count3];1]] $endif
$if[$var[dice1]==4] $setVar[count4;$sum[$getVar[count4];1]] $endif
$if[$var[dice1]==5] $setVar[count5;$sum[$getVar[count5];1]] $endif
$if[$var[dice1]==6] $setVar[count6;$sum[$getVar[count6];1]] $endif
# Continuation for each dice
$c[Apply scoring system]
$if[$getVar[count1]>=3]
$var[round_points;$sum[$var[round_points];1000]]
$setVar[count1;$sub[$getVar[count1];3]]
$endif
$if[$getVar[count2]>=3]
$var[round_points;$sum[$var[round_points];200]]
$setVar[count2;$sub[$getVar[count2];3]]
$endif
$c[Add points for individual values]
$var[round_points;$sum[$var[round_points];$multi[$getVar[count1];100]]]
$var[round_points;$sum[$var[round_points];$multi[$getVar[count5];50]]]
$c[Display round result and update points]
$setUserVar[points;$sum[$getUserVar[points];$var[round_points]]]
$c[Check if player won]
$if[$getUserVar[points]>=10000]
$var[game_active;false]
$sendEmbedMessage[$channelID;;Congratulations!;;🎉 You reached 10,000 points and won the game!;$var[success-color]]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$stop
$endif
$sendEmbedMessage[$channelID;;Round Result;;Dice: 🎲($var[dice1]) 🎲($var[dice2]) 🎲($var[dice3]) 🎲($var[dice4]) 🎲($var[dice5]) 🎲($var[dice6])
> Current round points: $var[round_points]
> Total points: $getUserVar[points];$var[neutral-color]]
$endif
$if[$message==points]
$c[Progress bar for player based on 10,000 points]
$c[Progress bar for bot based on 10,000 points]
$sendEmbedMessage[$channelID;;Points Overview;;> **Your points**: $getUserVar[points] $var[player_progress_bar]
> **Bot Points**: $getUserVar[bot_points] $var[bot_progress_bar];$var[neutral-color]]
$endif
$if[$message==take]
$if[$getVar[game_active]==false]
$sendEmbedMessage[$channelID;;Game Status;;The game is over. Start a new round with **!start**.;$var[error-color]]
$stop
$endif
$sendEmbedMessage[$channelID;;Points Secured;;You have secured your points and ended your turn. The bot is next!;$var[neutral-color]]
$c[Generate random points for bot and add them correctly to its score]
$if[$getUserVar[bot_points]>=10000]
$var[game_active;false]
$sendEmbedMessage[$channelID;;Bot Wins the Game;;The bot reached 10,000 points and won the game. Try again!;$var[error-color]]
$setUserVar[points;0]
$setUserVar[bot_points;0]
$stop
$else
$sendEmbedMessage[$channelID;;Bot Collects Points;;The bot now has a total of $getUserVar[bot_points] points (new points: $var[bot_round_points]). Your turn!;$var[neutral-color]]
$endif
$endif
$if[$message==help]
$title[📖 Chicago - Game Rules 📖]
$description[Goal: Reach **10,000** points before the bot
**Commands:**
**!start**: Starts the game
**!roll**: Rolls the dice and tries to collect points
**!take**: Secures your points and ends your turn
**!points**: Displays current points of you and the bot
**!end**: Ends the current game
**!level** {easy, normal, difficult}: Sets the bot's difficulty level
Scoring System:
- Roll a 1 = 100 points
- Roll a 5 = 50 points
- Three of a kind (e.g., 4,4,4) = Number * 100
- Three ones = **1,000 points**
If you roll no points, you lose the points of this round, and it’s the bot’s turn.]
$color[$var[neutral-color]]
$endif
$if[$message==level]
$sendEmbedMessage[$channelID;;Missing Difficulty Level;;Please use **!level <difficulty>**. Available options:
easy 🟢,
normal 🟡,
difficult 🔴.;$var[error-color]]
$endif
$if[$message==level easy]
$var[level;easy]
$sendEmbedMessage[$channelID;;Difficulty;;The difficulty level has been set to Easy 🟢.;$var[neutral-color]]
$endif
$if[$message==level normal]
$var[level;normal]
$sendEmbedMessage[$channelID;;Difficulty;;The difficulty level has been set to Normal 🟡.;$var[neutral-color]]
$endif
$if[$message==level difficult]
$var[level;difficult]
$sendEmbedMessage[$channelID;;Difficulty;;The difficulty level has been set to Difficult 🔴. The bot now receives a points boost!;$var[neutral-color]]
$endif
$var[errorColor;#FF0000]
$var[successColor;#00FF00]
$var[boostMultiplier;$random[1;3]]
$var[prefix;+]
$if[$message==daily]
$var[today;$year-$month-$day]
$if[$getUserVar[lastClaim]==$var[today]]
$var[remainingHours;$sub[24;$hour]]
$var[remainingMinutes;$sub[60;$minute]]
$sendEmbedMessage[$channelID;;❌ Bereits beansprucht;;Du hast deine tägliche Belohnung bereits eingefordert. Versuche es in **$var[remainingHours] Stunden und $var[remainingMinutes] Minuten** erneut.;$var[errorColor]]
$else
$setUserVar[streak;$sum[$getUserVar[streak];1]]
$setUserVar[lastClaim;$var[today]]
$var[streakBonus;100]
$if[$getUserVar[streak]>=6]
$var[streakBonus;150]
$endif
$if[$getUserVar[streak]>=11]
$var[streakBonus;200]
$endif
$var[reward;$multi[$var[streakBonus];$var[boostMultiplier]]]
$setUserVar[balance;$sum[$getUserVar[balance];$var[reward]]]
$var[rank;Bronze]
$if[$getUserVar[streak]>=6] $var[rank;Silber] $endif
$if[$getUserVar[streak]>=11] $var[rank;Gold] $endif
$if[$getUserVar[streak]>=21] $var[rank;Platin] $endif
$setUserVar[accountLevel;$var[rank]]
$sendEmbedMessage[$channelID;;🎉 Tägliche Belohnung;;Du hast **$var[reward]** Münzen erhalten! **Multiplikator**: $var[boostMultiplier]x. Streak: **$getUserVar[streak]🔥** Tage. Kontostand: **$getUserVar[balance]** Münzen. Rang: **$var[rank]**.;$var[successColor]]
$endif
$endif
$if[$message==bal]
$sendEmbedMessage[$channelID;;💰 Kontostand;;**Kontostand**: $getUserVar[balance] Münzen
**Aktueller Rang**: $getUserVar[accountLevel]
**Streak**: $getUserVar[streak]🔥 Tage
**Letzte Belohnung**: $getUserVar[lastClaim];$var[successColor]]
$endif
$if[$message==ränge]
$sendEmbedMessage[$channelID;;🎖️ Ränge Übersicht;;Hier sind die Ränge und die benötigten Streak-Tage, um sie freizuschalten:
- **Bronze**: Freigeschaltet ab 1 Tag.
- **Silber**: Freigeschaltet ab 6 Tagen.
- **Gold**: Freigeschaltet ab 11 Tagen.
- **Platin**: Freigeschaltet ab 21 Tagen.;$var[successColor]]
$endif
$if[$message==help]
$sendEmbedMessage[$channelID;;📜 Befehlsübersicht;;Hier sind die verfügbaren Befehle:
- **$var[prefix]daily**: Fordere deine tägliche Belohnung an.
- **$var[prefix]bal**: Zeigt deinen aktuellen Kontostand an.
- **$var[prefix]leaderboard**: Zeigt die Top 10 Benutzer mit den höchsten Kontoständen und aktuellen Streaks.
- **$var[prefix]ränge**: Zeigt die Liste der verfügbaren Ränge und die erforderlichen Streak-Tage.
- **$var[prefix]help**: Zeigt diese Befehlsübersicht an.;$var[successColor]]
$endif
$if[$message==leaderboard]
$nomention
$title[**🏆 Globales Leaderboard**]
$description[
$try
#1 - $getLeaderboardValue[user;username;desc;1] - $getLeaderboardValue[user;balance;desc;1] Münzen $if[$getLeaderboardValue[user;streak;desc;1;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;1;value] 🔥 $endif
$endtry
$try
#2 - $getLeaderboardValue[user;username;desc;2] - $getLeaderboardValue[user;balance;desc;2] Münzen $if[$getLeaderboardValue[user;streak;desc;2;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;2;value] 🔥 $endif
$endtry
$try
#3 - $getLeaderboardValue[user;username;desc;3] - $getLeaderboardValue[user;balance;desc;3] Münzen $if[$getLeaderboardValue[user;streak;desc;3;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;3;value] 🔥 $endif
$endtry
$try
#4 - $getLeaderboardValue[user;username;desc;4] - $getLeaderboardValue[user;balance;desc;4] Münzen $if[$getLeaderboardValue[user;streak;desc;4;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;4;value] 🔥 $endif
$endtry
$try
#5 - $getLeaderboardValue[user;username;desc;5] - $getLeaderboardValue[user;balance;desc;5] Münzen $if[$getLeaderboardValue[user;streak;desc;5;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;5;value] 🔥 $endif
$endtry
$try
#6 - $getLeaderboardValue[user;username;desc;6] - $getLeaderboardValue[user;balance;desc;6] Münzen $if[$getLeaderboardValue[user;streak;desc;6;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;6;value] 🔥 $endif
$endtry
$try
#7 - $getLeaderboardValue[user;username;desc;7] - $getLeaderboardValue[user;balance;desc;7] Münzen $if[$getLeaderboardValue[user;streak;desc;7;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;7;value] 🔥 $endif
$endtry
$try
#8 - $getLeaderboardValue[user;username;desc;8] - $getLeaderboardValue[user;balance;desc;8] Münzen $if[$getLeaderboardValue[user;streak;desc;8;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;8;value] 🔥 $endif
$endtry
$try
#9 - $getLeaderboardValue[user;username;desc;9] - $getLeaderboardValue[user;balance;desc;9] Münzen $if[$getLeaderboardValue[user;streak;desc;9;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;9;value] 🔥 $endif
$endtry
$try
#10 - $getLeaderboardValue[user;username;desc;10] - $getLeaderboardValue[user;balance;desc;10] Münzen $if[$getLeaderboardValue[user;streak;desc;10;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;10;value] 🔥 $endif
$endtry]
$color[FFFF00]
$endif
$var[errorColor;#FF0000]
$var[successColor;#00FF00]
$var[boostMultiplier;$random[1;3]]
$var[prefix;+]
$if[$message==daily]
$var[today;$year-$month-$day]
$if[$getUserVar[lastClaim]==$var[today]]
$var[remainingHours;$sub[24;$hour]]
$var[remainingMinutes;$sub[60;$minute]]
$sendEmbedMessage[$channelID;;❌ Already Claimed;;You have already claimed your daily reward. Try again in **$var[remainingHours] hours and $var[remainingMinutes] minutes**.;$var[errorColor]]
$else
$setUserVar[streak;$sum[$getUserVar[streak];1]]
$setUserVar[lastClaim;$var[today]]
$var[streakBonus;100]
$if[$getUserVar[streak]>=6]
$var[streakBonus;150]
$endif
$if[$getUserVar[streak]>=11]
$var[streakBonus;200]
$endif
$var[reward;$multi[$var[streakBonus];$var[boostMultiplier]]]
$setUserVar[balance;$sum[$getUserVar[balance];$var[reward]]]
$var[rank;Bronze]
$if[$getUserVar[streak]>=6] $var[rank;Silver] $endif
$if[$getUserVar[streak]>=11] $var[rank;Gold] $endif
$if[$getUserVar[streak]>=21] $var[rank;Platinum] $endif
$setUserVar[accountLevel;$var[rank]]
$sendEmbedMessage[$channelID;;🎉 Daily Reward;;You have received **$var[reward]** coins! **Multiplier**: $var[boostMultiplier]x. Streak: **$getUserVar[streak]🔥** days. Balance: **$getUserVar[balance]** coins. Rank: **$var[rank]**.;$var[successColor]]
$endif
$endif
$if[$message==bal]
$sendEmbedMessage[$channelID;;💰 Balance;;**Balance**: $getUserVar[balance] coins
**Current Rank**: $getUserVar[accountLevel]
**Streak**: $getUserVar[streak]🔥 days
**Last Claim**: $getUserVar[lastClaim];$var[successColor]]
$endif
$if[$message==ranks]
$sendEmbedMessage[$channelID;;🎖️ Rank Overview;;Here are the ranks and the required streak days to unlock them:
- **Bronze**: Unlocked at 1 day.
- **Silver**: Unlocked at 6 days.
- **Gold**: Unlocked at 11 days.
- **Platinum**: Unlocked at 21 days.;$var[successColor]]
$endif
$if[$message==help]
$sendEmbedMessage[$channelID;;📜 Command Overview;;Here are the available commands:
- **$var[prefix]daily**: Claim your daily reward.
- **$var[prefix]bal**: Shows your current balance.
- **$var[prefix]leaderboard**: Shows the top 10 users with the highest balances and streaks.
- **$var[prefix]ranks**: Shows the list of available ranks and the required streak days.
- **$var[prefix]help**: Shows this command overview.;$var[successColor]]
$endif
$if[$message==leaderboard]
$nomention
$title[**🏆 Global Leaderboard**]
$description[
$try
#1 - $getLeaderboardValue[user;username;desc;1] - $getLeaderboardValue[user;balance;desc;1] coins $if[$getLeaderboardValue[user;streak;desc;1;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;1;value] 🔥 $endif
$endtry
$try
#2 - $getLeaderboardValue[user;username;desc;2] - $getLeaderboardValue[user;balance;desc;2] coins $if[$getLeaderboardValue[user;streak;desc;2;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;2;value] 🔥 $endif
$endtry
$try
#3 - $getLeaderboardValue[user;username;desc;3] - $getLeaderboardValue[user;balance;desc;3] coins $if[$getLeaderboardValue[user;streak;desc;3;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;3;value] 🔥 $endif
$endtry
$try
#4 - $getLeaderboardValue[user;username;desc;4] - $getLeaderboardValue[user;balance;desc;4] coins $if[$getLeaderboardValue[user;streak;desc;4;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;4;value] 🔥 $endif
$endtry
$try
#5 - $getLeaderboardValue[user;username;desc;5] - $getLeaderboardValue[user;balance;desc;5] coins $if[$getLeaderboardValue[user;streak;desc;5;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;5;value] 🔥 $endif
$endtry
$try
#6 - $getLeaderboardValue[user;username;desc;6] - $getLeaderboardValue[user;balance;desc;6] coins $if[$getLeaderboardValue[user;streak;desc;6;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;6;value] 🔥 $endif
$endtry
$try
#7 - $getLeaderboardValue[user;username;desc;7] - $getLeaderboardValue[user;balance;desc;7] coins $if[$getLeaderboardValue[user;streak;desc;7;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;7;value] 🔥 $endif
$endtry
$try
#8 - $getLeaderboardValue[user;username;desc;8] - $getLeaderboardValue[user;balance;desc;8] coins $if[$getLeaderboardValue[user;streak;desc;8;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;8;value] 🔥 $endif
$endtry
$try
#9 - $getLeaderboardValue[user;username;desc;9] - $getLeaderboardValue[user;balance;desc;9] coins $if[$getLeaderboardValue[user;streak;desc;9;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;9;value] 🔥 $endif
$endtry
$try
#10 - $getLeaderboardValue[user;username;desc;10] - $getLeaderboardValue[user;balance;desc;10] coins $if[$getLeaderboardValue[user;streak;desc;10;value]>0] - Streak: $getLeaderboardValue[user;streak;desc;10;value] 🔥 $endif
$endtry]
$color[FFFF00]
$endif
There is a new way to integrate custom emojis into your bot without creating 10 servers where you do nothing but upload emojis so that your bot can use them.
Simply go to the Discord Developer Portal, select your bot and go to the Emojis tab.
You can upload up to 2,000 emojis. The only requirements you have to meet are:
Only JPEG, PNG, GIF files are allowed
Each individual file must not be larger than 256 KB
A recommended dimension is: 128 x 128
Naming: Emoji names must be at least 2 characters long and can only contain alphanumeric characters and underscores.
After you have uploaded an emoji, 4 pieces of information are displayed in the columns:
-The emoji as an image / gif
-Who uploaded it (this is only relevant if the bot is managed by a team, but is still displayed)
-The emoji ID
To use your emoji in your bot, go to the emoji search bar, to the height of the emoji you want to use, then a "Copy Markdown" button and a trash can will appear, click on the "Copy Markdown" button, then you should get something like this: <a:tada_animated:1292015216904638484>.
You can now paste this into the bot command and save it.
Credits: darknessdev.
ID :1034627889318084608
$nomention
$title[ChatGPT 4]
$description[
Message:
> `$message`
Response:
> ```$httpGet[http://mtl1-1.micium-hosting.com:10195/chatgpt?lang=english&text=$url[encode;$message]] $httpResult[result] ```]
$footer[$username[$botID] system.]
$color[00ffa4]
_____________________________________________________________________________________________________________________________________________________________________________________________________
Tipps!
Route: /chatgpt?text=
Description: Sends text to the ChatGPT API and receives a generated response. You can specify an optional personality for different emotions, a language for the response, a maximum length for the response, and additional context to enhance interaction.
Required parameter:
text: The text to send to ChatGPT.
Optional parameters:
personality: The personality for the response (e.g., angry, happy, neutral).
lang: The language for the response (e.g., Spanish, English).
length: Maximum response length in characters (max: 2000).
context: Additional information to guide the response.
Examples of requests:
Basic request: /chatgpt?text=Hello
Description: Sends a greeting without extra specifications.
With personality: /chatgpt?personality=happy&text=Hello
Description: Sends "Hello" with a happy personality.
With language: /chatgpt?lang=english&text=Hello
Description: Sends "Hello" and receives a response in English.
With length: /chatgpt?length=500&text=Hello
Description: Limits the response to 500 characters.
With context: /chatgpt?context=talking%20about%20technology&text=What%20do%20you%20think%20of%20AI?
Description: Provides context for AI discussion.
Complete request: /chatgpt?personality=creative&lang=english&length=500&context=discussing%20art&text=What%20do%20you%20think%20about%20abstract%20art?
Description: Uses all parameters for a detailed response.
Expected response:
The generated response from ChatGPT, reflecting the specified personality, language, context, and length.
Credits : badboygang_
ID : 352146434088239105
Variable:
last_reason
Value=
userwans
Value=0
Trigger : <Prefix>warn
Command language:
BDSCRIPT 2
$nomention
$reply
$onlyAdmin[$authorID;❌〣sorry, but you're not an admin]
$varExistError[last_reason;> ❌ **〣Error:** Pls add the `last_reason` variable in the app, leave the value blank.]
$varExistError[userwarns;> ❌ **〣 Error:** Pls add the `userwarns` variable with the value 0 in the app.]
$argsCheck[>1;❌ **〣 Usage:** `!warn <User> <Reason>`]
$if[$mentioned[1]==$authorID]
$color[ff0000]
$description[> ❌ **〣 Error!** You can't warn yourself!]
$stop
$elseif[$isAdmin[$mentioned[1]]==true]
$color[ff0000]
$description[> ❌ **〣 Error!** This user is an admin!]
$stop
$endif
$argsCheck[>2;❌ **〣 Usage:** `!warn$if[$userExists[$mentioned[1]]!=true] <User> $else $username[$mentioned[1]] $endif<Reason>`]
$setUserVar[last_reason;$noMentionMessage;$mentioned[1];$guildID]
$setUserVar[userwarns;$calculate[$getUserVar[userwarns;$mentioned[1];$guildID]+1];$mentioned[1];$guildID]
$title[✅ 〣**USER WARN**]
$color[00ff00]
$author[$username[$authorID]]
$authorIcon[$authorAvatar]
$thumbnail[$userAvatar[$mentioned[1]]]
$description[
<@$mentioned[1]> has been warned successfully! ✅
**Currently Warns:**
$getUserVar[userwarns;$mentioned[1];$guildID]
**Reason:**
$noMentionMessage
]
$addTimestamp
$footer[Executed in $executionTimems]
$c[Please make sure to add the IDs here, otherwise this system will not work.]
$sendEmbedMessage[Your Log Channel ID;;Warn Log;;**User : <@$mentioned[1]>**
**Warned By : <@$authorID>**
**__Reason: $noMentionMessage__**
**__Warn In__** <#$channelID>]
_____________________________________________________________________________________________________________________________________________________________________________________________________
Trigger : <Prefix>cwarns / checkwarns
Command language: BDSCRIPT
$nomention
$argsCheck[>1;> Please use: !checkwarns <@user> Missing : <@user>]
$color[000001]
$title[**Warn Check**]
$description[
**User : <@$mentioned[1]>**
**Warns :** $getUserVar[userwarns;$mentioned[1]]
**Checker : <@$authorID>**]
$addTimestamp
$reply
$onlyPerms[managemessages;You Dont Have Permission!]
_____________________________________________________________________________________________________________________________________________________________________________________________________
Trigger : <Prefix>setwarn //for set warn to 0 or 1 2 3 4 5
$setUserVar[userwarns;$noMentionMessage]
$deletecommand
$onlyAdmin[You Dont Have Permission!]
$description[You warned: @$mentioned[1] for the reason:
```$noMentionMessage```]
Credits: darknessdev.
ID: 1034627889318084608
Command language: BDSCRIPT 2
Option slash:
• user
Should it be mandatory?: yes
Option type: User
Important, you do not have to use this command as a slash command, you can also use it normally, just copy it.
______________________________________________________________________
Code:
$defer
$if[$isSlash==true]
$nomention
$title[User information]
$description[
**📝 Nickname **
• $nickname[$message[user]]
**📝 User name**
$username[$message[user]]
•🆔 **__User ID :__** 👤
• `$message[user]`
**🛠Is he an administrator?**
$replaceText[$replaceText[$checkCondition[$isAdmin[$message[user]]==true];true;Yes, is Administrator];false;No, not an administrator]
**💬 Private messages enabled💬**
• $replaceText[$replaceText[$isUserDMEnabled[$message[user]];true;This user has their PMs open];false;This user has their PMs closed]
**🤖 Is he a bot?🤖**
· $replaceText[$replaceText[$checkCondition[$isBot[$message[user]]==true];true;Yes, it's a bot];false;No, it's not a bot]
**👤User presence status**
$replaceText[$replaceText[$replaceText[$replaceText[$getUserStatus[$message[user]];online;Online :green_circle:];dnd;Do not disturb :red_circle:];idle;Absent :yellow_circle:];offline;Invisible :white_circle:]
**🕒 Custom Status 📌**
$if[$getCustomStatus[$message[user]]==]
This user has no custom status
$else
$getCustomStatus[$message[user]]
$endif
**🗓 Account creation date 🗓**
· $creationDate[$message[user]]
**📅 Server Join Date 📅**
· $userJoined[$message[user]]
**✔️ Highest role 🔱**
· <@&$highestRole[$message[user]]>
**👥 All roles 👥**
$if[$userRoles[$message[user]]==]
This user has no roles
$else
$userRoles[$message[user]]
$endif
**⁉ Permissions**:
``$replaceText[$replaceText[
• Administrator: $checkUserPerms[$message[user];admin]
• Add reactions: $checkUserPerms[$message[user];addreactions]
• Attach files: $checkUserPerms[$message[user];attachfiles]
• Ban: $checkUserPerms[$message[user];ban]
• Change nicknames: $checkUserPerms[$message[user];changenicknames]
• Create invitations: $checkUserPerms[$message[user];createinstantinvite]
• Insert links: $checkUserPerms[$message[user];embedlinks]
• Using external emojis: $checkUserPerms[$message[user];externalemojis]
• Kicking users: $checkUserPerms[$message[user];kick]
• Manage lounges: $checkUserPerms[$message[user];managechannels]
• Manage Emojis: $checkUserPerms[$message[user];manageemojis]
• Manage messages: $checkUserPerms[$message[user];managemessages]
• Manage Nicknames: $checkUserPerms[$message[user];managenicknames]
• Manage roles: $checkUserPerms[$message[user];manageroles]
• Manage the server and bots: $checkUserPerms[$message[user];manageserver]
• Manage webhooks: $checkUserPerms[$message[user];managewebhooks]
• Mention `@everyone`, `@here` and all roles: $checkUserPerms[$message[user];mentioneveryone]
• Read messages: $checkUserPerms[$message[user];readmessages]
• Send messages: $checkUserPerms[$message[user];sendmessages]
• Send TTS messages: $checkUserPerms[$message[user];tts]
;false;❌;-1];true;✅;-1]``
**👤 Profile photo🖼**
]
$image[$userAvatar[$message[user]]?size=2048]
$footer[Executed by : $username]
$color[ff4e5a]
$addButton[no;$userAvatar[$message[user]]?size=2048;Open original;link;no;;]
$addButton[no;http://tineye.com/search?url=$userAvatar[$message[user]]?size=2048;Avatar search;link;no;💡;]
$footerIcon[$authorAvatar]
$else
$nomention
$embedSuppressErrors[Erreur!;❌You must mention someone!;#ff0000;;Userinfo]
$title[[User Information]
$description[
**📝 Nickname **
• $nickname[$mentioned[1]]
**📝 Username **
$username[$mentioned[1]]
•🆔 **__User ID :__**
• `$mentioned[1]`
**🛠 Is he an administrator?? **
$replaceText[$replaceText[$checkCondition[$isAdmin[$mentioned[1]]==true];true;Yes, is Administrator];false;No, not an administrator]
**💬 Private messages enabled💬**
·
$replaceText[$replaceText[$isUserDMEnabled[$mentioned[1]];true;This user has their PMs open];false;This user has their PMs closed]
**🤖 Is he a bot?🤖**
·
$replaceText[$replaceText[$checkCondition[$isBot[$mentioned[1]]==true];true;Yes, it's a bot];false;No, it's not a bot]
**👤 User Presence Status**
$replaceText[$replaceText[$replaceText[$replaceText[$getUserStatus[$mentioned[1]];online;Online :green_circle:];dnd;Do not disturb :red_circle:];idle;Absent :yellow_circle:];offline;Invisible :white_circle:]
**🕒 Custom Status📌**
$if[$getCustomStatus[$mentioned[1]]==]
This user has no custom status
$else
$getCustomStatus[$mentioned[1]]
$endif
**🗓 Account creation date 🗓**
· $creationDate[$mentioned[1]]
**📅 Server Join Date 📅**
· $userJoined[$mentioned[1]]
**✔️ Highest role 🔱**
· <@&$highestRole[$mentioned[1]]
**👥 All roles 👥**
$if[$userRoles[$mentioned[1]]==]
This user has no roles
$else
$userRoles[$mentioned[1]]
$endif
**⁉ Permissions**:
``$replaceText[$replaceText[
• Administrator: $checkUserPerms[$mentioned[1];admin]
• Add reactions: $checkUserPerms[$mentioned[1];addreactions]
• Attach files: $checkUserPerms[$mentioned[1];attachfiles]
• Ban: $checkUserPerms[$mentioned[1];ban]
• Change nicknames: $checkUserPerms[$mentioned[1];changenicknames]
• Create an invitation: $checkUserPerms[$mentioned[1];createinstantinvite]
• Insert links: $checkUserPerms[$mentioned[1];embedlinks]
• Using external emojis: $checkUserPerms[$mentioned[1];externalemojis]
• Expel: $checkUserPerms[$mentioned[1];kick]
• Manage lounges: $checkUserPerms[$mentioned[1];managechannels]
• Manage Emojis: $checkUserPerms[$mentioned[1];manageemojis]
• Manage messages: $checkUserPerms[$mentioned[1];managemessages]
• Manage Nicknames: $checkUserPerms[$mentioned[1];managenicknames]
• Manage roles : $checkUserPerms[$mentioned[1];manageroles]
• Manage the server and bots: $checkUserPerms[$mentioned[1];manageserver]
• Manage webhooks: $checkUserPerms[$mentioned[1];managewebhooks]
• Mention `@everyone`, `@here` and all roles: $checkUserPerms[$mentioned[1];mentioneveryone]
• Read messages: $checkUserPerms[$mentioned[1];readmessages]
• Send messages: $checkUserPerms[$mentioned[1];sendmessages]
• Send TTS messages: $checkUserPerms[$mentioned[1];tts]
;false;❌;-1];true;✅;-1]``
**👤Profile photo 🖼**
]
$image[$userAvatar[$mentioned[1]]?size=2048]
$footer[Executed by: $username]
$color[ff4e5a]
$addButton[no;$userAvatar[$mentioned[1]]?size=2048;Ouvrir l'original;link;no;;]
$addButton[no;http://tineye.com/search?url=$userAvatar[$mentioned[1]]?size=2048;Avatar search;link;no;💡;]
$footerIcon[$authorAvatar]
$endif
Credits : _thunderlord
Command language:
BDSCRIPT 2
To get your API Key go to KASTG API SUPPORT and run the command : &key
$nomention
$c[### Error Handler ###]
$onlyIf[$guildID!=;]
$onlyIf[$message!=;Please Write Something!]
$cooldown[10s;Please Try again after %time%!!!]
$var[apiKey;YOUR_KEY] $c[Get Your Free From https://api.kastg.xyz/discord And Replace It with YOUR_KEY.]
$var[error;Some Unknown Error Occured] $c[If Api is Down!]
$var[color;FFA500]
$c[### Config Here ###]
$var[prompt;$url[encode;$noMentionMessage]]
$var[negative_prompt;$url[encode;badly drawn, ugly, low quality, EasyNegative, BadBream]] $c[<----------- Describe What You do not want in the image to appear.]
$var[sampler;sa-solver] $c[<---------- Adjust Your sampler.]
$var[aspect_ratio;square] $c[<------------ Adjust Your image Ratio.]
$var[style;anime] $c[<----------- Set To (no-style) for no style to add in the image.]
$var[url;https://api.kastg.xyz]
$var[endpoint;/api/ai/pixart-sigma]
$c[### Request Handler ### ]
$httpGet[$var[url]$var[endpoint]?prompt=$var[prompt]&n_p=$var[negative_prompt]&sampler=$var[sampler]&ratio=$var[aspect_ratio]&style=$var[style]&key=$var[apiKey]]
$if[$httpStatus==200]
$var[result;$httpResult[result;0;url]]
$title[PixArt Sigma]
$image[$var[result]]
$color[$var[color]]
$addButton[no;https://www.youtube.com/@bdfdtools;More Codes;link;no;]
$elseif[$httpStatus==400]
$httpResult[error]
$elseif[$httpStatus==429]
$description[Server Is Too Busy]
$color[$var[color]]
$else
$var[error]
$endif
Thanks to: yuraj_e4k for helping develop the code.
Code 1
Trigger : +scratchcard
Command language : BDSCRIPT 2
$nomention
$var[btn1;$randomText[🔵;⚪;⚪]]
$var[btn2;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn3;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn4;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn5;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn6;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn7;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn8;$optOff[$randomText[🔵;⚪;⚪]]]
$var[btn9;$optOff[$randomText[🔵;⚪;⚪]]]
$var[messageid;$sendMessage[Scratch the Cards below;true]]
$addButton[yes;btn1-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn2-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn3-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[yes;btn4-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn5-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn6-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[yes;btn7-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn8-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$addButton[no;btn9-$authorID-$var[messageID]; ;secondary;;$var[messageID]]
$setUserVar[scratchcard;0,$var[btn1],$var[btn2],$var[btn3],$var[btn4],$var[btn5],$var[btn6],$var[btn7],$var[btn8],$var[btn9],$var[messageID]]
Code 2
Command Language: BDSCRIPT 2
Trigger: $onInteraction
$nomention
$textSplit[$getUserVar[scratchcard];,]
$var[number;$splitText[1]]
$var[btn1;$splitText[2]]
$var[btn2;$splitText[3]]
$var[btn3;$splitText[4]]
$var[btn4;$splitText[5]]
$var[btn5;$splitText[6]]
$var[btn6;$splitText[7]]
$var[btn7;$splitText[8]]
$var[btn8;$splitText[9]]
$var[btn9;$splitText[10]]
$var[messageID;$splitText[11]]
$onlyIf[$checkContains[$customID;-$authorID-$var[messageID]]==true;]
$editButton[$customID;$var[$replaceText[$customID;-$authorID-$var[messageID];;1]];primary;true;;$var[messageID]]
$var[number;$sum[$var[number];1]]
You scratched $var[number] cards!
$setUserVar[scratchcard;$var[number],$var[btn1],$var[btn2],$var[btn3],$var[btn4],$var[btn5],$var[btn6],$var[btn7],$var[btn8],$var[btn9],$var[messageID]]
$if[$var[number]==9]
$if[$checkContains[🔵🔵🔵;$var[btn1]$var[btn2]$var[btn3];$var[btn4]$var[btn5]$var[btn6];$var[btn7]$var[btn8]$var[btn9];$var[btn1]$var[btn4]$var[btn7];$var[btn5]$var[btn2]$var[btn8];$var[btn9]$var[btn6]$var[btn3];$var[btn1]$var[btn5]$var[btn9];$var[btn5]$var[btn7]$var[btn3]]==true]
$sendMessage[You won!;false]
$else
$sendMessage[You lost!;false]
$endif
$endif
You find the share code below,
if you dont know how to use it please klick here to see how to use the sharecode.
Here is the share code: x77IWJZr7HxTv1eTqTMQL4NYj
Valid until: 30.09.2024
Credits : yuraj_e4k
Go to the Discord Developer Portal,
select your bot,
and go to the APP verification tab on the right.
Fill out all the fields until a green check mark appears everywhere and then press Verify APP.
It can take up to a minute for the check mark to appear in Discord.
Important: the bot retains all intents until it is added to 100 servers. However, you can request these permanently once the bot has been added to 75 servers.
Trigger : /suggest
$nomention
$c[ Visit -> https://dadocs.rickyjs.xyz/ for more information about api key ]
$onlyIf[$isSlash==true;]
$ephemeral
$var[time.emoji;⏱️]
$var[tick.emoji;✅]
$var[cross.emoji;❌]
$var[warning.emoji;⚠️]
$var[next-arrow.emoji;▶️]
$try
$onlyIf[$guildID!=;]
$catch
$var[cross.emoji] You can't use this here!
$stop
$endtry
$var[users.emoji;<:VA_Users:1254749214437675120>]
$var[upvote.emoji;<:VN_UpVoteGreen:1251030884304556043>]
$var[downvote.emoji;<:VN_DownVoteRed:1251030851337191424>]
$var[neutral.emoji;<:VA_NeutralVote:1250672230094868582>]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
There was an error! Please try again later
$stop
$endtry
$if[$json[suggestion-channel]==]
- $var[warning.emoji] This server hasn't set a suggestion channel yet!$var[\n]- $var[next-arrow.emoji] Contact the Server Owner or an Admin to set it up via `/suggestion-config` command!
$stop
$else
$if[$serverChannelExists[$json[suggestion-channel]]==false]
- $var[cross.emoji] Couldn't find the suggestions channel!$var[\n]- $var[next-arrow.emoji] Report this to an Admin or Server Owner to Re-Config the suggestion channel!
$stop
$endif
$endif
$if[$json[blacklist-role]!=]
$if[$roleExists[$json[blacklist-role]]==false]
- $var[cross.emoji] Couldn't find the set Blacklisted Role!$var[\n]- $var[next-arrow.emoji] Report this to an Admin or Server Owner to Re-add the Blacklisted Role!
$stop
$else
$if[$hasRole[$authorID;$json[blacklist-role]]==true]
- $var[cross.emoji] You can not suggest since you have blacklist Role!
$stop
$endif
$endif
$endif
$if[$charCount[$message[suggestion]]>=4035]
- $var[warning.emoji] Your suggestion's character count exceeded 4035 of character limit!
$stop
$endif
$if[$message[image]!=]
$async[fetch.content.type]
$httpAddHeader[Range;bytes=0-0]
$httpGet[$message[image]]
$var[content_type;$httpGetHeader[Content-Type]]
$endasync $await[fetch.content.type]
$if[$checkContains[$var[content_type];image]==false]
$var[cross.emoji] Please select only an Image/GIF.
$stop
$endif
$endif
$if[$json[cooldown-time]==]
$var[cooldownTime;45s]
$else
$var[cooldownTime;$json[cooldown-time]]
$endif
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$cooldown[$var[cooldownTime];- $var[time.emoji] You are on cooldown! Try again <t:$sum[$getTimestamp;$getCooldown[normal]]:R>]
$var[channel;$json[suggestion-channel]]
$try
$jsonSetString[total-suggestions;$sum[0$json[total-suggestions];1]]
$var[embed.id;$sendEmbedMessage[$var[channel];;New Suggestion! (#$json[total-suggestions]);;$message[suggestion];$var[embed.color];$c[author];$c[author icon];Suggested by $username[$authorID] ($authorID);$authorAvatar;$c[thumbnail];$message[image];$c[timestamp];true]]
$if[$json[create-threads]==true]
$try
$startThread[Discussion about $username[$authorID]'s suggestion;$var[channel];$var[embed.id];10080;false]
$endtry
$endif
$jsonArray[message-ids;$var[embed.id];upvote-users]
$jsonArray[message-ids;$var[embed.id];downvote-users]
$jsonArray[message-ids;$var[embed.id];neutral-users]
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
$catch
$if[$checkContains[$error[message];Failed to send the message]==true]
- $var[cross.emoji] Failed to send the suggestion!$var[\n]- $var[warning.emoji] Permissions Required:$var[\n.space]- `Send Messages:` **To send messages**$var[\n.space]- `Read Message History:` **To be able to attach buttons to suggestions**
$else
There was an error! Please try again later
$endif
$stop
$endtry
$async[attach.buttons]
$useChannel[$var[channel]]
$addButton[false;suggestion.Voting-upvote-$authorID;0;success;false;$var[upvote.emoji];$var[embed.id]]
$addButton[false;suggestion.Voting-downvote-$authorID;0;danger;false;$var[downvote.emoji];$var[embed.id]]
$addButton[false;suggestion.Voting-neutral-$authorID;0;secondary;false;$var[neutral.emoji];$var[embed.id]]
$addButton[false;suggestion.VotersList;;secondary;false;$var[users.emoji];$var[embed.id]]
$endasync
$async[] $var[tick.emoji] Succesfully Sent Your Suggestion! $endasync $await[]
----------------------------------------------------------------------------------------------------------------------
Code 2
/suggestion-config
$nomention
$c[ Visit -> https://dadocs.rickyjs.xyz/ for more information about api key ]
$onlyIf[$isSlash==true;]
$var[tick.emoji;✅]
$var[note.emoji;📝]
$var[time.emoji;⏰]
$var[cross.emoji;❌]
$var[number.emoji;🔢]
$var[warning.emoji;⚠️]
$var[next-arrow.emoji;➡️]
$try
$onlyIf[$guildID!=;]
$catch
$ephemeral
$var[cross.emoji] You can't use this here!
$stop
$endtry
$var[suggestion-channel.buttonEmoji;📡]
$var[blacklist-role.buttonEmoji;🚫]
$var[embed-color.buttonEmoji;🎨]
$var[cooldown.buttonEmoji;⏱️]
$var[refresh.buttonEmoji;🔄]
$var[thread.buttonEmoji;🧵]
$var[help.buttonEmoji;❔]
$var[logs.buttonEmoji;📜]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$var[color;0df2f4]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$ephemeral
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$stop
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
$ephemeral
There was an error! Please try again later
$stop
$endtry
$if[$json[suggestion-channel]==]
$var[channel.info;$var[cross.emoji] Suggestion Channel: Not Found]
$else
$if[$serverChannelExists[$json[suggestion-channel]]==false]
$var[channel.exist;`(Channel Doesn't Exist)`]
$var[emoji.usage;$var[warning.emoji]]
$else
$var[channel.exist;`(Channel Available)`]
$var[channel.desc;$var[\n.space]- **$var[note.emoji] This is where all the suggestions will go to**]
$var[emoji.usage;$var[tick.emoji]]
$endif
$var[channel.info;$var[emoji.usage] Suggestion Channel: <#$json[suggestion-channel]> $var[channel.exist]$var[channel.desc]]
$endif
$if[$json[blacklist-role]==]
$var[role.info;$var[cross.emoji] Blacklisted Role: Not Found]
$else
$if[$roleExists[$json[blacklist-role]]==false]
$var[role.exist;`(Role Doesn't Exist)`]
$var[emoji.usage;$var[warning.emoji]]
$else
$var[role.exist;`(Role Available)`]
$var[role.desc;$var[\n.space]- **$var[note.emoji] Users who have this role won't be able to send suggestions**]
$var[emoji.usage;$var[tick.emoji]]
$endif
$var[role.info;$var[emoji.usage] Blacklisted Role: <@&$json[blacklist-role]> $var[role.exist]$var[role.desc]]
$endif
$if[$json[embed-color]==]
$var[color.info;$var[cross.emoji] Default Embed Color: $var[color]]
$else
$var[color.hex;$json[embed-color;hex]]
$var[color.name;$json[embed-color;name]]
$if[$var[color.name]!=]
$var[color.name.notNull; `($var[color.name])`]
$endif
$var[color.desc;$var[\n.space]- **$var[note.emoji] Embeds in suggestions will appear in this color ↑**]
$var[color.info;$var[tick.emoji] Custom Embed Color: #$var[color.hex]$var[color.name.notNull]$var[color.desc]]
$var[color;$var[color.hex]]
$endif
$if[$json[cooldown-time]==]
$var[cooldown.info;$var[time.emoji] Default Cooldown Time: __45s__]
$else
$var[cooldown.info;$var[time.emoji] Custom Cooldown Time: __$json[cooldown-time]__]
$endif
$if[$json[total-suggestions]==]
$var[suggest.count;0]
$else
$var[suggest.count;$json[total-suggestions]]
$endif
$var[suggest.info;$var[number.emoji] Total Suggestions Sent: __$var[suggest.count]__]
$if[$or[$json[create-threads]==false;$json[create-threads]==]==true]
$var[thread.info;$var[cross.emoji] Create Thread channels under suggestions]
$else
$var[thread.info;$var[tick.emoji] Create Thread channels under suggestions$var[\n.space]- **$var[note.emoji] A Thread will be created below every suggestion for discussion**]
$endif
$author[Suggestion System Configuration]
$authorIcon[$authorAvatar]
$description[- $var[channel.info]$var[\n]$var[\n]- $var[role.info]$var[\n]$var[\n]- $var[color.info]$var[\n]$var[\n]- $var[thread.info]$var[\n]$var[\n]- $var[cooldown.info]$var[\n]- $var[suggest.info]$var[\n]- $var[refresh.buttonEmoji] Last Refresh was <t:$getTimestamp:R>]
$color[$var[color]]
$footer[$serverName[$guildID]]
$thumbnail[$serverIcon[$guildID]]
$addButton[no;SuggestionSystem.channelID-$authorID;Suggestion Channel;primary;false;$var[suggestion-channel.buttonEmoji]]
$addButton[no;SuggestionSystem.blacklistRoleID-$authorID;Blacklisted Role;primary;false;$var[blacklist-role.buttonEmoji]]
$addButton[no;SuggestionSystem.embedColor-$authorID;Embed Color;primary;false;$var[embed-color.buttonEmoji]]
$addButton[no;SuggestionSystem.cooldown-$authorID;Cooldown;primary;false;$var[cooldown.buttonEmoji]]
$addButton[yes;SuggestionSystem.threads-$authorID;Threads;secondary;false;$var[thread.buttonEmoji]]
$addButton[no;SuggestionSystem.help;Help;secondary;false;$var[help.buttonEmoji]]
$addButton[no;SuggestionSystem.openlogs-$authorID;Configuration Logs;secondary;false;$var[logs.buttonEmoji]]
$addButton[no;SuggestionSystem.refresh-$authorID;Refresh;secondary;false;$var[refresh.buttonEmoji]]
----------------------------------------------------------------------------------------------------------------------
$nomention
$c[ Visit -> https://dadocs.rickyjs.xyz/ for more information about api key ]
$textSplit[$customID;-]
$var[tick.emoji;✅]
$var[note.emoji;📝]
$var[time.emoji;⏰]
$var[link.emoji;🔗]
$var[cross.emoji;❌]
$var[number.emoji;🔢]
$var[warning.emoji;⚠️]
$var[bookmark.emoji;📑]
$var[settings.emoji;⚙️]
$var[next-arrow.emoji;➡️]
$var[down-arrow.emoji;🔽]
$var[suggestion-channel.buttonEmoji;📡]
$var[blacklist-role.buttonEmoji;🚫]
$var[embed-color.buttonEmoji;🎨]
$var[cooldown.buttonEmoji;⏱️]
$var[refresh.buttonEmoji;🔄]
$var[thread.buttonEmoji;🧵]
$var[help.buttonEmoji;❔]
$var[logs.buttonEmoji;📜]
$var[users.emoji;<:VA_Users:1254749214437675120>]
$var[search.emoji;<:VA_Search:1254848757275689183>]
$var[upvote.emoji;<:VN_UpVoteGreen:1251030884304556043>]
$var[downvote.emoji;<:VN_DownVoteRed:1251030851337191424>]
$var[neutral.emoji;<:VA_NeutralVote:1250672230094868582>]
$var[left-arrow-green.emoji;<:LeftGreenArrowPixel:1190492988053401611>]
$var[firstpage.emoji;<:Pixelated_FirstArrow:1193452503589716078>]
$var[lastpage.emoji;<:Pixelated_LastArrow:1193452401831710720>]
$var[nextpage.emoji;<:Pixelated_NextArrow:1193452428230672435>]
$var[prevpage.emoji;<:Pixelated_PrevArrow:1193452525832126464>]
$var[logs.limit;50]
$c[ // ↓ Refresh Button / Back to Config Menu ]
$if[$or[$splitText[1]==SuggestionSystem.refresh;$splitText[1]==Suggestion.ConfigMenu]==true]
$if[$splitText[2]==$authorID]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$stop
$endif
$var[color;0df2f4]
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$stop
$endtry
$if[$json[suggestion-channel]==]
$var[channel.info;$var[cross.emoji] Suggestion Channel: Not Found]
$else
$if[$serverChannelExists[$json[suggestion-channel]]==false]
$var[channel.exist;`(Channel Doesn't Exist)`]
$var[emoji.usage;$var[warning.emoji]]
$else
$var[channel.exist;`(Channel Available)`]
$var[channel.desc;$var[\n.space]- **$var[note.emoji] This is where all the suggestions will go to**]
$var[emoji.usage;$var[tick.emoji]]
$endif
$var[channel.info;$var[emoji.usage] Suggestion Channel: <#$json[suggestion-channel]> $var[channel.exist]$var[channel.desc]]
$endif
$if[$json[blacklist-role]==]
$var[role.info;$var[cross.emoji] Blacklisted Role: Not Found]
$else
$if[$roleExists[$json[blacklist-role]]==false]
$var[role.exist;`(Role Doesn't Exist)`]
$var[emoji.usage;$var[warning.emoji]]
$else
$var[role.exist;`(Role Available)`]
$var[role.desc;$var[\n.space]- **$var[note.emoji] Users who have this role won't be able to send suggestions**]
$var[emoji.usage;$var[tick.emoji]]
$endif
$var[role.info;$var[emoji.usage] Blacklisted Role: <@&$json[blacklist-role]> $var[role.exist]$var[role.desc]]
$endif
$if[$json[embed-color]==]
$var[color.info;$var[cross.emoji] Default Embed Color: $var[color]]
$else
$var[color.hex;$json[embed-color;hex]]
$var[color.name;$json[embed-color;name]]
$if[$var[color.name]!=]
$var[color.name.notNull; `($var[color.name])`]
$endif
$var[color.desc;$var[\n.space]- **$var[note.emoji] Embeds in suggestions will appear in this color ↑**]
$var[color.info;$var[tick.emoji] Custom Embed Color: #$var[color.hex]$var[color.name.notNull]$var[color.desc]]
$var[color;$var[color.hex]]
$endif
$if[$json[cooldown-time]==]
$var[cooldown.info;$var[time.emoji] Default Cooldown Time: __45s__]
$else
$var[cooldown.info;$var[time.emoji] Custom Cooldown Time: __$json[cooldown-time]__]
$endif
$if[$json[total-suggestions]==]
$var[suggest.count;0]
$else
$var[suggest.count;$json[total-suggestions]]
$endif
$var[suggest.info;$var[number.emoji] Total Suggestions Sent: __$var[suggest.count]__]
$if[$or[$json[create-threads]==false;$json[create-threads]==]==true]
$var[thread.info;$var[cross.emoji] Create Thread channels under suggestions]
$else
$var[thread.info;$var[tick.emoji] Create Thread channels under suggestions$var[\n.space]- **$var[note.emoji] A Thread will be created below every suggestion for discussion**]
$endif
$author[Suggestion System Configuration]
$authorIcon[$authorAvatar]
$description[- $var[channel.info]$var[\n]$var[\n]- $var[role.info]$var[\n]$var[\n]- $var[color.info]$var[\n]$var[\n]- $var[thread.info]$var[\n]$var[\n]- $var[cooldown.info]$var[\n]- $var[suggest.info]$var[\n]- $var[refresh.buttonEmoji] Last Refresh was <t:$getTimestamp:R>]
$color[$var[color]]
$footer[$serverName[$guildID]]
$thumbnail[$serverIcon[$guildID]]
$removeAllComponents
$addButton[no;SuggestionSystem.channelID-$authorID;Suggestion Channel;primary;false;$var[suggestion-channel.buttonEmoji]]
$addButton[no;SuggestionSystem.blacklistRoleID-$authorID;Blacklisted Role;primary;false;$var[blacklist-role.buttonEmoji]]
$addButton[no;SuggestionSystem.embedColor-$authorID;Embed Color;primary;false;$var[embed-color.buttonEmoji]]
$addButton[no;SuggestionSystem.cooldown-$authorID;Cooldown;primary;false;$var[cooldown.buttonEmoji]]
$addButton[yes;SuggestionSystem.threads-$authorID;Threads;secondary;false;$var[thread.buttonEmoji]]
$addButton[no;SuggestionSystem.help;Help;secondary;false;$var[help.buttonEmoji]]
$addButton[no;SuggestionSystem.openlogs-$authorID;Configuration Logs;secondary;false;$var[logs.buttonEmoji]]
$addButton[no;SuggestionSystem.refresh-$authorID;Refresh;secondary;false;$var[refresh.buttonEmoji]]
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$c[ // ↓ Brings some FAQ ]
$if[$splitText[1]==SuggestionSystem.help]
$ephemeral
$removeAllComponents
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$author[Some problems you might encounter]
$description[1. $var[help.buttonEmoji] Why the bot is not adding buttons to the suggestions?$var[\n.space]- **It needs** `Read Message History` **Permission in order to attach buttons to suggestions**$var[\n]- $var[help.buttonEmoji] Why the bot is not creating a thread channel below suggestions?$var[\n.space]- **Make sure you have given the bot** `Create Public Threads` **Permission in the channel**]
$thumbnail[$userAvatar[$botID]]
$color[0df2f4]
$endif
$c[ // ↓ Config of Threads ]
$if[$splitText[1]==SuggestionSystem.threads]
$ephemeral
$removeAllComponents
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$else
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$var[check_json;$json[create-threads]]
$jsonClear
$if[$or[$var[check_json]==;$var[check_json]==false]==true]
$var[log_action;Enabled Threads]
$else
$var[log_action;Disabled Threads]
$endif
$jsonSetString[user;$authorID]
$jsonSetString[action;$var[log_action]]
$jsonSetString[timestamp;$getTimestamp]
$var[unshift.value;$jsonStringify]
$jsonClear
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$if[$or[$var[check_json]==;$var[check_json]==false]==true]
$var[ephemeral.res;$var[tick.emoji] Successfully **Enabled** Threads]
$jsonSetString[create-threads;true]
$else
$var[ephemeral.res;$var[tick.emoji] Successfully **Disabled** Threads]
$jsonSetString[create-threads;false]
$endif
$jsonArrayUnshift[logs;thread_logs;$var[unshift.value]]
$if[$jsonArrayCount[logs;thread_logs]>$var[logs.limit]]
$var[pop;$jsonArrayPop[logs;thread_logs]]
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
- $var[ephemeral.res]
$catch
There was an error! Please try again later
$endtry
$endif
$else
This is not your button!
$endif
$endif
$c[ // ↓ Suggestion ChannelID Input Modal ]
$if[$splitText[1]==channelID.forSuggestion]
$var[chan;$replaceText[$input[suggest.channel];`;]]
$ephemeral
$removeAllComponents
$if[$findChannel[$var[chan]]==]
$var[cross.emoji] Channel `$var[chan]` not found.
$else
$if[$channelType[$findChannel[$var[chan]]]!=text]
$var[cross.emoji] That channel is not a text-based channel!
$else
$try
$jsonSetString[user;$authorID]
$jsonSetString[action;Channel <#$findChannel[$var[chan]]>]
$jsonSetString[timestamp;$getTimestamp]
$var[unshift.value;$jsonStringify]
$jsonClear
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$jsonSetString[suggestion-channel;$findChannel[$var[chan]]]
$jsonArrayUnshift[logs;suggestionChan_logs;$var[unshift.value]]
$if[$jsonArrayCount[logs;suggestionChan_logs]>$var[logs.limit]]
$var[pop;$jsonArrayPop[logs;suggestionChan_logs]]
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
$var[tick.emoji] Successfully Set <#$findChannel[$var[chan]]> as the Suggestion Channel!
$catch
There was an error! Please try again later
$endtry
$endif
$endif
$endif
$c[ // ↓ Blacklist Role Input Modal ]
$if[$splitText[1]==blacklistRole.forSuggestion]
$var[role;$replaceText[$input[blacklist.role.id];`;]]
$ephemeral
$removeAllComponents
$if[$findRole[$var[role]]==]
$var[cross.emoji] Role `$var[role]` not found.
$else
$try
$jsonSetString[user;$authorID]
$jsonSetString[action;Role <@&$findRole[$var[role]]>]
$jsonSetString[timestamp;$getTimestamp]
$var[unshift.value;$jsonStringify]
$jsonClear
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$jsonSetString[blacklist-role;$findRole[$var[role]]]
$jsonArrayUnshift[logs;blacklistRole_logs;$var[unshift.value]]
$if[$jsonArrayCount[logs;blacklistRole_logs]>$var[logs.limit]]
$var[pop;$jsonArrayPop[logs;blacklistRole_logs]]
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
$var[tick.emoji] Successfully Set <@&$findRole[$var[role]]> as the Blacklisted Role!
$catch
There was an error! Please try again later
$endtry
$endif
$endif
$c[ // Embed Color Input Modal ]
$if[$splitText[1]==embedColor.forSuggestion]
$var[color;$replaceText[$replaceText[$replaceText[$input[color.hex.input];`;];";];#;]]
$var[newline;$url[decode;%0A]]
$var[invisible-char;$url[decode;%E2%80%8E+]]
$ephemeral
$removeAllComponents
$if[$isValidHex[$var[color]]==false]
$var[cross.emoji] `"$var[color]"` is not a valid hex!$var[newline]$var[next-arrow.emoji] [Click on this link to get your hex code](https://htmlcolorcodes.com/color-chart/flat-design-color-chart/)
$else
$try
$httpGet[https://www.thecolorapi.com/id?hex=$var[color]]
$var[color.name;$httpResult[name;value]]
$endtry
$if[$var[color.name]==]
$var[color.name;N/A]
$endif
$try
$jsonSetString[user;$authorID]
$jsonSetString[action;Color #$var[color] `($var[color.name])`]
$jsonSetString[timestamp;$getTimestamp]
$var[unshift.value;$jsonStringify]
$jsonClear
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$jsonSetString[embed-color;hex;$toUppercase[$var[color]]]
$jsonSetString[embed-color;name;$var[color.name]]
$jsonArrayUnshift[logs;embedColor_logs;$var[unshift.value]]
$if[$jsonArrayCount[logs;embedColor_logs]>$var[logs.limit]]
$var[pop;$jsonArrayPop[logs;embedColor_logs]]
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
$thumbnail[$serverIcon[$guildID]]
$description[$var[invisible-char]$var[newline]$var[newline]<-- New Color]
$color[$var[color]]
$footer[Successfully Set to this color $var[tick.emoji]]
$catch
There was an error! Please try again later
$endtry
$endif
$endif
$c[ // ↓ Cooldown Input Modal ]
$if[$splitText[1]==cooldown.forSuggestion]
$var[cooldown.input;$replaceText[$replaceText[$input[cooldown.time.input];`;]; ;]]
$ephemeral
$removeAllComponents
$textSplit[$var[cooldown.input];]
$var[unit;$splitText[>]]
$removeSplitTextElement[$getTextSplitLength]
$var[int;$joinSplitText[]]
$if[$isNumber[$var[int]]==false]
$var[cross.emoji] Please provide a valid number!
$elseif[$var[int]<=0]
$var[cross.emoji] You can not have `0` or a negative number!
$elseif[$checkContains[$var[int];.]==true]
$var[cross.emoji] You can not have floats/decimals in your time!
$else
$jsonSetString[s;1000]
$jsonSetString[m;60000]
$jsonSetString[h;3600000]
$jsonSetString[d;86400000]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$if[$json[$var[unit]]==]
- $var[cross.emoji] `"$var[unit]"` Wrong time-unit provided!$var[\n]- $var[down-arrow.emoji] Time units are as follows$var[\n.space]- `s = seconds`$var[\n.space]- `m = minutes`$var[\n.space]- `h = hours`$var[\n.space]- `d = days`
$else
$var[parsed.time;$var[int]]
$var[parsed.unit.ms;$json[$var[unit]]]
$var[converted_to_ms;$sum[$calculate[$var[parsed.time] * $var[parsed.unit.ms]];$getTimestamp[ms]]]
$var[timestamp;$divide[$var[converted_to_ms];1000]]
$var[difference;$sub[$var[timestamp];$getTimestamp]]
$jsonClear
$if[$var[difference]>86400] $c[ // 86400 are seconds in a day ]
- $var[warning.emoji] You can not set a cooldown of more than 1 day
$else
$try
$jsonSetString[user;$authorID]
$jsonSetString[action;Cooldown $var[cooldown.input]]
$jsonSetString[timestamp;$getTimestamp]
$var[unshift.value;$jsonStringify]
$jsonClear
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$jsonSetString[cooldown-time;$var[cooldown.input]]
$jsonArrayUnshift[logs;cooldownTime_logs;$var[unshift.value]]
$if[$jsonArrayCount[logs;cooldownTime_logs]>$var[logs.limit]]
$var[pop;$jsonArrayPop[logs;cooldownTime_logs]]
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
- $var[tick.emoji] Successfully set cooldown time to `$var[cooldown.input]`$var[\n.space]- Users will be able to suggest again **<t:$var[timestamp]:R>** after running the command!
$catch
- There was an error! Please try again later
$endtry
$endif
$endif
$endif
$endif
$if[$splitText[1]==SuggestionSystem.channelID]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;manageroles;managechannels]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$else
$newModal[channelID.forSuggestion;Suggestion System]
$addTextInput[suggest.channel;short;Input a Valid Text Channel ID/Name;1;70;true;$channelID;]
$endif
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$if[$splitText[1]==SuggestionSystem.blacklistRoleID]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;manageroles;managechannels]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$else
$newModal[blacklistRole.forSuggestion;Suggestion System]
$addTextInput[blacklist.role.id;short;Input a Valid Role ID/Name;1;70;true;;]
$endif
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$if[$splitText[1]==SuggestionSystem.embedColor]
$if[$splitText[2]==$authorID]
$var[color;0df2f4]
$if[$checkUserPerms[$authorID;manageroles;managechannels]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$else
$newModal[embedColor.forSuggestion;Suggestion System]
$addTextInput[color.hex.input;short;Input a Valid Hex Color;1;6;true;;$var[color]]
$endif
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$if[$splitText[1]==SuggestionSystem.cooldown]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;manageroles;managechannels]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$else
$newModal[cooldown.forSuggestion;Suggestion System]
$addTextInput[cooldown.time.input;short;Input a valid time;2;7;true;;(for eg. 30s, 20m, 7h)]
$endif
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$c[ // ↓ User clicking buttons to vote ]
$if[$splitText[1]==suggestion.Voting]
$var[suggestor;$splitText[3]]
$var[\n;$url[decode;%0A]]
$try
$defer
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$var[user_upvote_index;$jsonArrayIndex[message-ids;$messageID;upvote-users;$authorID]]
$var[user_downvote_index;$jsonArrayIndex[message-ids;$messageID;downvote-users;$authorID]]
$var[user_neutral_index;$jsonArrayIndex[message-ids;$messageID;neutral-users;$authorID]]
$if[$splitText[2]==upvote]
$if[$var[user_upvote_index]==-1]
$jsonArrayAppend[message-ids;$messageID;upvote-users;"$authorID"]
$var[pressed.vote;- $var[tick.emoji] You have upvoted this suggestion!]
$else
$jsonUnset[message-ids;$messageID;upvote-users;$var[user_upvote_index]]
$var[pressed.vote;- $var[tick.emoji] Removed your upvote from this suggestion!]
$endif
$if[$var[user_downvote_index]!=-1]
$jsonUnset[message-ids;$messageID;downvote-users;$var[user_downvote_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your downvote from here]
$endif
$if[$var[user_neutral_index]!=-1]
$jsonUnset[message-ids;$messageID;neutral-users;$var[user_neutral_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your neutral vote from here]
$endif
$elseif[$splitText[2]==downvote]
$if[$var[user_downvote_index]==-1]
$jsonArrayAppend[message-ids;$messageID;downvote-users;"$authorID"]
$var[pressed.vote;- $var[tick.emoji] You have downvoted this suggestion!]
$else
$jsonUnset[message-ids;$messageID;downvote-users;$var[user_downvote_index]]
$var[pressed.vote;- $var[tick.emoji] Removed your downvote from this suggestion!]
$endif
$if[$var[user_upvote_index]!=-1]
$jsonUnset[message-ids;$messageID;upvote-users;$var[user_upvote_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your upvote from here]
$endif
$if[$var[user_neutral_index]!=-1]
$jsonUnset[message-ids;$messageID;neutral-users;$var[user_neutral_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your neutral vote from here]
$endif
$elseif[$splitText[2]==neutral]
$if[$var[user_neutral_index]==-1]
$jsonArrayAppend[message-ids;$messageID;neutral-users;"$authorID"]
$var[pressed.vote;- $var[tick.emoji] You are neutral on this suggestion!]
$else
$jsonUnset[message-ids;$messageID;neutral-users;$var[user_neutral_index]]
$var[pressed.vote;- $var[tick.emoji] Removed your neutral vote from this suggestion!]
$endif
$if[$var[user_downvote_index]!=-1]
$jsonUnset[message-ids;$messageID;downvote-users;$var[user_downvote_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your downvote from here]
$endif
$if[$var[user_upvote_index]!=-1]
$jsonUnset[message-ids;$messageID;upvote-users;$var[user_upvote_index]]
$var[removed.vote;- $var[next-arrow.emoji] Removed your upvote from here]
$endif
$endif
$var[json.dat;$jsonStringify]
$jsonClear
$jsonSetString[name;Suggestions_System-$guildID]
$jsonSetString[value;$var[json.dat]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/set;$jsonStringify]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$jsonParse[$json[Suggestions_System-$guildID]]
$var[upvote.total.count;$jsonArrayCount[message-ids;$messageID;upvote-users]]
$var[downvote.total.count;$jsonArrayCount[message-ids;$messageID;downvote-users]]
$var[neutral.total.count;$jsonArrayCount[message-ids;$messageID;neutral-users]]
$async[]
$editButton[suggestion.Voting-upvote-$var[suggestor];$var[upvote.total.count];success;false;$var[upvote.emoji];$messageID]
$editButton[suggestion.Voting-downvote-$var[suggestor];$var[downvote.total.count];danger;false;$var[downvote.emoji];$messageID]
$editButton[suggestion.Voting-neutral-$var[suggestor];$var[neutral.total.count];secondary;false;$var[neutral.emoji];$messageID]
$endasync
$ephemeral
$removeAllComponents
$var[pressed.vote]$var[\n]$var[removed.vote]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$endtry
$endif
$c[ // ↓ Opens Voters List ]
$if[$splitText[1]==suggestion.VotersList]
$ephemeral
$removeAllComponents
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$jsonParse[$json[message-ids]]
$var[upvoters.array;$jsonArrayCount[$messageID;upvote-users]]
$if[$var[upvoters.array]==0]
$var[last_page;1]
$var[details;There are no users!]
$else
$async[math]
$enableDecimals[true]
$var[div;$divide[$var[upvoters.array];10]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[last_page;$sum[1;$splitText[1]]]
$else
$var[last_page;$var[div]]
$endif
$endasync $await[math]
$var[q;0]
$var[\n;$url[decode;%0A]]
$var[code;%{DOL}%if[%{DOL}%json[%{DOL}%messageID\;upvote-users\;%{DOL}%var[q\]\]!=\]%{DOL}%sum[%{DOL}%var[q\]\;1\]. <@%{DOL}%json[%{DOL}%messageID\;upvote-users\;%{DOL}%var[q\]\]> `(@%{DOL}%username[%{DOL}%json[%{DOL}%messageID\;upvote-users\;%{DOL}%var[q\]\]\])`%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\] + 1\]\]]
$var[loop;$eval[$repeatMessage[10;$var[code]]]]
$var[details;$var[loop]]
$endif
$var[first_page;1]
$var[page;$var[first_page]]
$var[next_page;$sum[$var[page];1]]
$var[prev_page;$sub[$var[page];1]]
$author[Upvote Users List]
$description[$var[details]]
$color[$var[embed.color]]
$footer[Page 1/$var[last_page]]
$addButton[false;SuggestionVoters.navigate-$messageID-upvoters-$var[first_page]-a;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[firstpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$messageID-upvoters-$var[prev_page]-b;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[prevpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$messageID-upvoters-$var[next_page]-c;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[nextpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$messageID-upvoters-$var[last_page]-d;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[lastpage.emoji]]
$addButton[false;SuggestionVoters.userindexModal-$messageID;;secondary;false;$var[search.emoji]]
$addButton[true;selectVotersType-$messageID-upvoteUsers;Upvoters;primary;true]
$addButton[false;selectVotersType-$messageID-downvoteUsers;Downvoters;primary;false]
$addButton[false;selectVotersType-$messageID-neutralUsers;Neutrals;primary;false]
$catch
There was an error! Please try again later
$endtry
$endif
$c[ // ↓ Selection of what type of voters list to see ]
$if[$splitText[1]==selectVotersType]
$var[msg-id;$splitText[2]]
$var[voters.type;$splitText[3]]
$if[$var[voters.type]==upvoteUsers]
$var[array.name;upvote-users]
$var[disable-button.uv;true]
$var[author.text;Upvote Users List]
$var[for-nav;upvoters]
$elseif[$var[voters.type]==downvoteUsers]
$var[array.name;downvote-users]
$var[disable-button.dv;true]
$var[author.text;Downvote Users List]
$var[for-nav;downvoters]
$elseif[$var[voters.type]==neutralUsers]
$var[array.name;neutral-users]
$var[disable-button.nu;true]
$var[author.text;Neutral Users List]
$var[for-nav;neutrals]
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$jsonParse[$json[message-ids]]
$var[defined.array.count;$jsonArrayCount[$var[msg-id];$var[array.name]]]
$if[$var[defined.array.count]==0]
$var[last_page;1]
$var[details;There are no users!]
$else
$async[math]
$enableDecimals[true]
$var[div;$divide[$var[defined.array.count];10]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[total.pages;$sum[1;$splitText[1]]]
$else
$var[total.pages;$var[div]]
$endif
$endasync $await[math]
$var[last_page;$var[total.pages]]
$var[q;0]
$var[\n;$url[decode;%0A]]
$var[code;%{DOL}%if[%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]!=\]%{DOL}%sum[%{DOL}%var[q\]\;1\]. <@%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]> `(@%{DOL}%username[%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]\])`%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\] + 1\]\]]
$var[loop;$eval[$repeatMessage[10;$var[code]]]]
$var[details;$var[loop]]
$endif
$var[first_page;1]
$var[page;$var[first_page]]
$var[next_page;$sum[$var[page];1]]
$var[prev_page;$sub[$var[page];1]]
$author[$var[author.text]]
$description[$var[details]]
$color[$var[embed.color]]
$footer[Page $var[page]/$var[last_page]]
$removeButtons
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[for-nav]-$var[first_page]-a;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[firstpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[for-nav]-$var[prev_page]-b;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[prevpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[for-nav]-$var[next_page]-c;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[nextpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[for-nav]-$var[last_page]-d;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[lastpage.emoji]]
$addButton[false;SuggestionVoters.userindexModal-$var[msg-id];;secondary;false;$var[search.emoji]]
$addButton[true;selectVotersType-$var[msg-id]-upvoteUsers;Upvoters;primary;$var[disable-button.uv]]
$addButton[false;selectVotersType-$var[msg-id]-downvoteUsers;Downvoters;primary;$var[disable-button.dv]]
$addButton[false;selectVotersType-$var[msg-id]-neutralUsers;Neutrals;primary;$var[disable-button.nu]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$endtry
$endif
$c[ // ↓ Navigation of users in voters list ]
$if[$splitText[1]==SuggestionVoters.navigate]
$var[msg-id;$splitText[2]]
$var[voter-type;$splitText[3]]
$var[page;$splitText[4]]
$var[first_page;1]
$var[next_page;$sum[$var[page];1]]
$var[prev_page;$sub[$var[page];1]]
$if[$var[voter-type]==upvoters]
$var[array.name;upvote-users]
$var[disable-button.uv;true]
$var[author.text;Upvote Users List]
$elseif[$var[voter-type]==downvoters]
$var[array.name;downvote-users]
$var[disable-button.dv;true]
$var[author.text;Downvote Users List]
$elseif[$var[voter-type]==neutrals]
$var[array.name;neutral-users]
$var[disable-button.nu;true]
$var[author.text;Neutral Users List]
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$jsonParse[$json[message-ids]]
$var[defined.array.count;$jsonArrayCount[$var[msg-id];$var[array.name]]]
$if[$var[defined.array.count]==0]
$var[last_page;1]
$var[details;There are no users!]
$else
$async[math]
$enableDecimals[true]
$var[div;$divide[$var[defined.array.count];10]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[total.pages;$sum[1;$splitText[1]]]
$else
$var[total.pages;$var[div]]
$endif
$endasync $await[math]
$var[last_page;$var[total.pages]]
$if[$var[page]>=$var[last_page]]
$var[page;$var[last_page]]
$endif
$if[$var[page]<=0]
$var[page;1]
$endif
$var[q;$sub[$sub[$multi[$var[page];10];9];1]]
$var[\n;$url[decode;%0A]]
$var[code;%{DOL}%if[%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]!=\]%{DOL}%sum[%{DOL}%var[q\]\;1\]. <@%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]> `(@%{DOL}%username[%{DOL}%json[%{DOL}%var[msg-id\]\;%{DOL}%var[array.name\]\;%{DOL}%var[q\]\]\])`%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\] + 1\]\]]
$var[loop;$eval[$repeatMessage[10;$var[code]]]]
$var[details;$var[loop]]
$endif
$author[$var[author.text]]
$description[$var[details]]
$color[$var[embed.color]]
$footer[Page $var[page]/$var[last_page]]
$removeButtons
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[voter-type]-$var[first_page]-a;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[firstpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[voter-type]-$var[prev_page]-b;;secondary;$checkCondition[$var[page]==$var[first_page]];$var[prevpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[voter-type]-$var[next_page]-c;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[nextpage.emoji]]
$addButton[false;SuggestionVoters.navigate-$var[msg-id]-$var[voter-type]-$var[last_page]-d;;secondary;$checkCondition[$var[page]==$var[last_page]];$var[lastpage.emoji]]
$addButton[false;SuggestionVoters.userindexModal-$var[msg-id];;secondary;false;$var[search.emoji]]
$addButton[true;selectVotersType-$var[msg-id]-upvoteUsers;Upvoters;primary;$var[disable-button.uv]]
$addButton[false;selectVotersType-$var[msg-id]-downvoteUsers;Downvoters;primary;$var[disable-button.dv]]
$addButton[false;selectVotersType-$var[msg-id]-neutralUsers;Neutrals;primary;$var[disable-button.nu]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$endtry
$endif
$c[ // ↓ Find a user's Vote Position ]
$if[$splitText[1]==SuggestionVoters.userindexModal]
$newModal[userIndex.forVotersList-$splitText[2];Voter Search]
$addTextInput[input.user.voter;short;Input a Valid User Name/ID;1;50;true;$username[$authorID];]
$endif
$if[$splitText[1]==userIndex.forVotersList]
$ephemeral
$removeAllComponents
$var[fetch.user;$replaceText[$replaceText[$input[input.user.voter];`;];";]]
$var[msg.id;$splitText[2]]
$var[\n;$url[decode;%0A]]
$if[$findUser[$var[fetch.user];no]==]
$var[user;$var[fetch.user]]
$onlyIf[$userExists[$var[user]]==true;$var[cross.emoji] User or Member `"$var[user]"` does not exist, if you think this user is in this list then please provide their ID]
$else
$var[user;$findUser[$var[fetch.user];no]]
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$var[link;https://discord.com/channels/$guildID/$json[suggestion-channel]/$var[msg.id]]
$var[user_upvote_index;$jsonArrayIndex[message-ids;$var[msg.id];upvote-users;$var[user]]]
$var[user_downvote_index;$jsonArrayIndex[message-ids;$var[msg.id];downvote-users;$var[user]]]
$var[user_neutral_index;$jsonArrayIndex[message-ids;$var[msg.id];neutral-users;$var[user]]]
$if[$var[user_upvote_index]!=-1]
$var[position;$var[user_upvote_index]]
$var[desc.text;- $var[link.emoji] Voted here: $var[link]$var[\n]- $var[bookmark.emoji] Type: **Upvoter**$var[\n]- $var[number.emoji] Position: $sum[$var[position];1]]
$elseif[$var[user_downvote_index]!=-1]
$var[position;$var[user_downvote_index]]
$var[desc.text;- $var[link.emoji] Voted here: $var[link]$var[\n]- $var[bookmark.emoji] Type: **Downvoter**$var[\n]- $var[number.emoji] Position: $sum[$var[position];1]]
$elseif[$var[user_neutral_index]!=-1]
$var[position;$var[user_neutral_index]]
$var[desc.text;- $var[link.emoji] Voted here: $var[link]$var[\n]- $var[bookmark.emoji] Type: **Neutral**$var[\n]- $var[number.emoji] Position: $sum[$var[position];1]]
$else
$if[$var[user]==$authorID]
$var[address;You aren't]
$else
$var[address;This user isn't]
$endif
$var[desc.text;- $var[cross.emoji] $var[address] in any of the lists!]
$endif
$author[$username[$var[user]]]
$thumbnail[$userAvatar[$var[user]]]
$description[$var[desc.text]]
$color[$var[embed.color]]
$catch
There was an error! Please try again later
$endtry
$endif
$c[ // ↓ Opens Config Logs ]
$if[$splitText[1]==SuggestionSystem.openlogs]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$stop
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$stop
$endtry
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$if[$jsonExists[logs;suggestionChan_logs]==false]
$var[total.pages;1]
$var[result;There are no logs!]
$else
$jsonParse[$json[logs]]
$async[math]
$enableDecimals[true]
$var[div;$divide[$jsonArrayCount[suggestionChan_logs];5]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[total.pages;$sum[1;$splitText[1]]]
$else
$var[total.pages;$var[div]]
$endif
$endasync $await[math]
$var[x;0]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$var[code;%{DOL}%if[%{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\]!=\]%{DOL}%sum[%{DOL}%var[x\]\;1\]. **Customizer:** <@%{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\;user\]> `(%{DOL}%username[%{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\;user\]\])`%{DOL}%var[\n.space\]- %{DOL}%var[settings.emoji\] Action: %{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\;action\]%{DOL}%var[\n.space\]- %{DOL}%var[time.emoji\] Time: <t:%{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\;timestamp\]> (<t:%{DOL}%json[suggestionChan_logs\;%{DOL}%var[x\]\;timestamp\]:R>)%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[x\;%{DOL}%calculate[%{DOL}%var[x\] + 1\]\]]
$var[result;$eval[$repeatMessage[5;$var[code]]]]
$endif
$var[result;$replaceText[$replaceText[$replaceText[$var[result];u003c;<];u003e;>];u0026;&]]
$author[Suggestion Channel Logs]
$thumbnail[$serverIcon[$guildID]]
$description[$var[result]]
$color[$var[embed.color]]
$footer[Page 1/$var[total.pages]]
$removeAllComponents
$addButton[no;SuggestionSysLogs-$authorID-FirstPage-suggestionChan_logs;;secondary;true;$var[firstpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-PrevPage-suggestionChan_logs;;secondary;true;$var[prevpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-NextPage-suggestionChan_logs;;secondary;$checkCondition[$var[total.pages]==1];$var[nextpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-LastPage-suggestionChan_logs;;secondary;$checkCondition[$var[total.pages]==1];$var[lastpage.emoji]]
$addButton[yes;Suggestion.ConfigMenu-$authorID;Back to Configuration;success;false;$var[left-arrow-green.emoji]]
$newSelectMenu[Suggestion.Logs;1;1;Logs List 🌸]
$addSelectMenuOption[Suggestion.Logs;Suggestion Channel Logs;SuggestionsLogs.Menu-$authorID-suggestionChan_logs;;true;$var[suggestion-channel.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Blacklist Role Logs;SuggestionsLogs.Menu-$authorID-blacklistRole_logs;;;$var[blacklist-role.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Embed Color Logs;SuggestionsLogs.Menu-$authorID-embedColor_logs;;;$var[embed-color.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Cooldown Logs;SuggestionsLogs.Menu-$authorID-cooldownTime_logs;;;$var[cooldown.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Thread Logs;SuggestionsLogs.Menu-$authorID-thread_logs;;;$var[thread.buttonEmoji]]
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$c[ // ↓ Config Logs Navigation ]
$if[$splitText[1]==SuggestionSysLogs]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$stop
$endif
$var[json_obj;$splitText[4]]
$if[$var[json_obj]==suggestionChan_logs]
$var[author.text;Suggestion Channel Logs]
$elseif[$var[json_obj]==blacklistRole_logs]
$var[author.text;Blacklist Role Logs]
$elseif[$var[json_obj]==embedColor_logs]
$var[author.text;Embed Color Logs]
$elseif[$var[json_obj]==cooldownTime_logs]
$var[author.text;Cooldown Logs]
$elseif[$var[json_obj]==thread_logs]
$var[author.text;Thread Logs]
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$stop
$endtry
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$if[$jsonExists[logs;$var[json_obj]]==false]
$var[total.pages;1]
$var[updated.page;1]
$var[result;There are no logs!]
$else
$jsonParse[$json[logs]]
$var[array.count;$jsonArrayCount[$var[json_obj]]]
$async[math]
$textSplit[$replaceText[$getEmbedData[$channelID;$messageID;1;footer];Page;];/]
$var[current.page;$splitText[1]]
$enableDecimals[true]
$var[div;$divide[$var[array.count];5]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[total.pages;$sum[1;$splitText[1]]]
$else
$var[total.pages;$var[div]]
$endif
$endasync $await[math]
$if[$splitText[3]==FirstPage]
$var[updated.page;1]
$elseif[$splitText[3]==PrevPage]
$var[updated.page;$sub[$var[current.page];1]]
$elseif[$splitText[3]==NextPage]
$var[updated.page;$sum[$var[current.page];1]]
$else
$var[updated.page;$var[total.pages]]
$endif
$if[$or[$var[updated.page]>$var[total.pages];$var[updated.page]<=0]==true]
$var[updated.page;$var[total.pages]]
$endif
$var[q;$sub[$multi[$var[updated.page];5];4]]
$var[x;$sub[$var[q];1]]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$var[code;%{DOL}%if[%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\]!=\]%{DOL}%sum[%{DOL}%var[x\]\;1\]. **Customizer:** <@%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;user\]> `(%{DOL}%username[%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;user\]\])`%{DOL}%var[\n.space\]- %{DOL}%var[settings.emoji\] Action: %{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;action\]%{DOL}%var[\n.space\]- %{DOL}%var[time.emoji\] Time: <t:%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;timestamp\]> (<t:%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;timestamp\]:R>)%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[x\;%{DOL}%calculate[%{DOL}%var[x\] + 1\]\]]
$var[result;$eval[$repeatMessage[5;$var[code]]]]
$var[result;$replaceText[$replaceText[$replaceText[$var[result];u0026;&];u003c;<];u003e;>]]
$endif
$author[$var[author.text]]
$thumbnail[$serverIcon[$guildID]]
$description[$var[result]]
$color[$var[embed.color]]
$footer[Page $var[updated.page]/$var[total.pages]]
$async[]
$editButton[SuggestionSysLogs-$authorID-FirstPage-$var[json_obj];;secondary;$checkCondition[$var[updated.page]==1];$var[firstpage.emoji];$messageID]
$editButton[SuggestionSysLogs-$authorID-PrevPage-$var[json_obj];;secondary;$checkCondition[$var[updated.page]==1];$var[prevpage.emoji];$messageID]
$editButton[SuggestionSysLogs-$authorID-NextPage-$var[json_obj];;secondary;$checkCondition[$var[updated.page]==$var[total.pages]];$var[nextpage.emoji];$messageID]
$editButton[SuggestionSysLogs-$authorID-LastPage-$var[json_obj];;secondary;$checkCondition[$var[updated.page]==$var[total.pages]];$var[lastpage.emoji];$messageID]
$endasync
$else
$ephemeral
$removeAllComponents
This is not your button!
$endif
$endif
$textSplit[$message;-]
$c[ // ↓ Selection of what config logs to see ]
$if[$splitText[1]==SuggestionsLogs.Menu]
$if[$splitText[2]==$authorID]
$if[$checkUserPerms[$authorID;managechannels;manageroles]==false]
$var[\n.space;$url[decode;%0A+]]
$if[$checkUserPerms[$authorID;manageroles]==false]
$var[manageRoles.missing;- $var[next-arrow.emoji] `Manage Roles`]
$endif
$if[$checkUserPerms[$authorID;managechannels]==false]
$var[manageChannels.missing;- $var[next-arrow.emoji] `Manage Channels`]
$endif
$ephemeral
$removeAllComponents
- $var[warning.emoji] You need the Following Permission in order to proceed!$var[\n.space]$var[manageRoles.missing]$var[\n.space]$var[manageChannels.missing]
$stop
$endif
$var[json_obj;$splitText[3]]
$if[$var[json_obj]==suggestionChan_logs]
$var[author.text;Suggestion Channel Logs]
$var[default.menu.sg;true]
$elseif[$var[json_obj]==blacklistRole_logs]
$var[author.text;Blacklist Role Logs]
$var[default.menu.bl;true]
$elseif[$var[json_obj]==embedColor_logs]
$var[author.text;Embed Color Logs]
$var[default.menu.ec;true]
$elseif[$var[json_obj]==cooldownTime_logs]
$var[author.text;Cooldown Logs]
$var[default.menu.ct;true]
$elseif[$var[json_obj]==thread_logs]
$var[author.text;Thread Logs]
$var[default.menu.tl;true]
$endif
$try
$httpAddHeader[apikey;$getVar[ApiKey]]
$httpPost[https://bdfddata.rickyjs.xyz/release/db/get;{
"name": "Suggestions_System-$guildID"
}]
$var[correct.json;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$httpResult[entries];"{;{];}";}];$url[decode;%5C];];"";"];"}";"}]]
$jsonParse[$var[correct.json]]
$catch
$ephemeral
$removeAllComponents
There was an error! Please try again later
$stop
$endtry
$if[$json[embed-color]==]
$var[embed.color;0df2f4]
$else
$var[embed.color;$json[embed-color;hex]]
$endif
$if[$jsonExists[logs;$var[json_obj]]==false]
$var[total.pages;1]
$var[result;There are no logs!]
$else
$jsonParse[$json[logs]]
$var[array.count;$jsonArrayCount[$var[json_obj]]]
$async[math]
$enableDecimals[true]
$var[div;$divide[$var[array.count];5]]
$if[$checkContains[$var[div];.]==true]
$textSplit[$var[div];.]
$var[total.pages;$sum[1;$splitText[1]]]
$else
$var[total.pages;$var[div]]
$endif
$endasync $await[math]
$var[x;0]
$var[\n;$url[decode;%0A]]
$var[\n.space;$url[decode;%0A+]]
$var[code;%{DOL}%if[%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\]!=\]%{DOL}%sum[%{DOL}%var[x\]\;1\]. **Customizer:** <@%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;user\]> `(%{DOL}%username[%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;user\]\])`%{DOL}%var[\n.space\]- %{DOL}%var[settings.emoji\] Action: %{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;action\]%{DOL}%var[\n.space\]- %{DOL}%var[time.emoji\] Time: <t:%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;timestamp\]> (<t:%{DOL}%json[%{DOL}%var[json_obj\]\;%{DOL}%var[x\]\;timestamp\]:R>)%{DOL}%var[\n\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[x\;%{DOL}%calculate[%{DOL}%var[x\] + 1\]\]]
$var[result;$eval[$repeatMessage[5;$var[code]]]]
$var[result;$replaceText[$replaceText[$replaceText[$var[result];u0026;&];u003c;<];u003e;>]]
$endif
$author[$var[author.text]]
$thumbnail[$serverIcon[$guildID]]
$description[$var[result]]
$color[$var[embed.color]]
$footer[Page 1/$var[total.pages]]
$removeAllComponents
$addButton[no;SuggestionSysLogs-$authorID-FirstPage-$var[json_obj];;secondary;true;$var[firstpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-PrevPage-$var[json_obj];;secondary;true;$var[prevpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-NextPage-$var[json_obj];;secondary;$checkCondition[$var[total.pages]==1];$var[nextpage.emoji]]
$addButton[no;SuggestionSysLogs-$authorID-LastPage-$var[json_obj];;secondary;$checkCondition[$var[total.pages]==1];$var[lastpage.emoji]]
$addButton[yes;Suggestion.ConfigMenu-$authorID;Back to Configuration;success;false;$var[left-arrow-green.emoji]]
$newSelectMenu[Suggestion.Logs;1;1;Logs List 🌸]
$addSelectMenuOption[Suggestion.Logs;Suggestion Channel Logs;SuggestionsLogs.Menu-$authorID-suggestionChan_logs;;$var[default.menu.sg];$var[suggestion-channel.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Blacklist Role Logs;SuggestionsLogs.Menu-$authorID-blacklistRole_logs;;$var[default.menu.bl];$var[blacklist-role.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Embed Color Logs;SuggestionsLogs.Menu-$authorID-embedColor_logs;;$var[default.menu.ec];$var[embed-color.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Cooldown Logs;SuggestionsLogs.Menu-$authorID-cooldownTime_logs;;$var[default.menu.ct];$var[cooldown.buttonEmoji];]
$addSelectMenuOption[Suggestion.Logs;Thread Logs;SuggestionsLogs.Menu-$authorID-thread_logs;;$var[default.menu.tl];$var[thread.buttonEmoji]]
$else
$ephemeral
$removeAllComponents
This is not your menu!
$endif
$endif
Your bot respond to commands in DM
$onlyIf[$guildID!=;Error Message]
Your Code
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You're able to take mod actions against people with a higher role
If your code uses mentions:
$onlyIf[$rolePosition[$highestRole[$authorID]]<$rolePosition[$highestRole[$mentioned[1]]];error here (optional)]
or if your code uses IDs and not mentions:
$onlyIf[$rolePosition[$highestRole[$authorID]]<$rolePosition[$highestRole[$message[1]]];error here (optional)]
or if your code uses IDs and mentions:
$onlyIf[$rolePosition[$highestRole[$authorID]]<$rolePosition[$highestRole[$findUser[$message[1]]]];error here (optional)]
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Set Channel with Slash commands
variable
channel = 0
$nomention
$defer
$if[$guildID!=]
$onlyPerms[manageserver;> You need the permission "manageserver"]
$if[$channelExists[$message[channel]]==true]
$description[<#$message[channel]>]
$else
$title[Channel not found]
$description[The channel you specified does not exist on this server!]
$color[ff0000]
$endif
$endif
$endif
$nomention
$var[title;SLOT]
$var[description;<a:Automat:1158735645548740608>〣`Started`]
$var[money;$message[1]]
$var[bank_var;$getUserVar[bank]]
$c["multi" Shows how often the winnings are multiplied]
$var[multi;4]
$argsCheck[>1;〣Please use `!slot` *<sum>*]
$onlyIf[$isNumber[$var[money]]==true;]
$onlyIf[$var[money]<=$var[bank_var];]
$onlyIf[$getUserVar[bank]>0;<:abbrechen:1025819352848670770>〣Oops, you don't have enough money.]
$var[id;$sendEmbedMessage[$channelID;;$var[title];;$var[description];#5497b9;;;;;;;;yes]]
$defer
$var[1;🎃]
$var[2;🦇]
$var[3;🕸️]
$c[These are emojis that will be displayed later, you can edit them here.]
$async[a]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[a]
$async[b]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[b]
$async[c]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[c]
$async[d]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[d]
$async[e]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[e]
$async[f]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[f]
$async[g]
$replyIn[1s]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
➜ $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$endasync
$await[g]
$async[h]
$replyIn[1s]
$c[Chance of winning ------------------------------------------------------------------------------------------------------------------------------------------------------------]
$if[$random[0;101]>50]
$var[t1;$randomText[$var[1];$var[2];$var[3]]]]
$var[t2;$randomText[$var[1];$var[2];$var[3]]]]
$var[t3;$randomText[$var[1];$var[2];$var[3]]]]
$var[t4;$randomText[$var[1];$var[2];$var[3]]]]
$var[t5;$randomText[$var[1];$var[2];$var[3]]]]
$else
$var[t1;$optOff[$randomText[$var[1];$var[2];$var[3]]]]
$var[t2;$optOff[$randomText[$var[1];$var[2];$var[3]]]]
$var[t3;$optOff[$randomText[$var[1];$var[2];$var[3]]]]
$var[t4;$optOff[$randomText[$var[1];$var[2];$var[3]]]]
$var[t5;$optOff[$randomText[$var[1];$var[2];$var[3]]]]
$endif
$c[------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
$var[r;
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
🎰 ➜ $var[t1] | $var[t2] | $var[t3] | $var[t4] | $var[t5]
$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]] |$optOff[$randomText[$var[1];$var[2];$var[3]]] | $optOff[$randomText[$var[1];$var[2];$var[3]]]
]
$editMessage[$channelID;$var[id];;$var[title];$var[r];$random[0;10000];Slots.]
$var[status;$replaceText[$replaceText[$and[$var[t1]==$var[t2];$var[t2]==$var[t3];$var[t3]==$var[t4];$var[t4]==$var[t5]];true;Win;1];false;Lose;1]]]
$c[!!Important!!
The "Win" and "Lose" options are the messages that are also displayed at the end, if you change these you also have to change them in the top line and in the status at the bottom otherwise the code won't work!]
$sendMessage[
<@$authorID>
➜ $var[status]
]
$if[$var[status]==Win]
$setUserVar[bank;$sum[$getUserVar[bank];$multi[$var[money];$getVar[multi]]]]
$else
$c[Lose]
$setUserVar[bank;$sub[$getUserVar[bank];$var[money]]]
$endif
$color[$random[0;1000]]
$endasync
This code was created by Berk, please take a look at him.
VARIABLES THAT YOU NEED TO ADD, WITH THEIR VALUES:
custombg
value=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQz8TueHUgVNroUgCgN5d35oo5Kg_LuFN6CHToIXL4pPSK-AL8FXgjEyBUcJlg97sMcrqg&usqp=CAU
talk
value=0
level
value=0
req
value=250
levelmsg
value=**{username}** You leveled up! your new level is {level}
lvlchannel
value=
lvlblacklisted
value=
role5
value=
role10
value=
role15
value=
role20
value=
role25
value=
role30
value=
message
value = 0
====================================================================================
====================================================================================
====================================================================================
====================================================================================
GAIN EXP CODE, YOU NEED TO ADD THIS CODE IN A COMMAND FOR EACH LETTER, (from a-z to A-Z or the whole alphabet of your country, one command per letter as trigger) ALSO MAKE SURE TO ENABLE UNSTABLE MODE ON ALL THE COMMANDS:
$nomention
$c[ Please, don't edit the code if you don't know how it works, you can broke it! use the variables instead and ENABLE UNSTABLE MODE!]
$setUserVar[message;$sum[$getUserVar[message];1]]
$cooldown[2s;]
$if[$getUserVar[talk]>$getUserVar[req]]
$setUserVar[level;$sum[$getUserVar[level];1]]
$setUserVar[req;$sum[$getUserVar[req];$random[0;60]]]
$setUserVar[talk;0]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$channelSendMessage[$replaceText[$replaceText[%$checkCondition[$getServerVar[lvlchannel]==]%;%true%;$channelID;1];%false%;$getServerVar[lvlchannel];1];$replaceText[$replaceText[$replaceText[$replaceText[$getServerVar[levelmsg];{username};$username;-1];{level};$sum[$getUserVar[level];1];-1];{mention};<@$authorID>;-1];{user.id};$authorID;-1]]
$else
$setUserVar[talk;$sum[$getUserVar[talk];$random[1;35]]]
$endif
$onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
$suppressErrors
$c[LEVEL UP ROLES BELOW - MAKE SURE TO GIVE THE BOT "MANAGEROLES" PERMISSIONS IF YOU WILL SET LEVEL REWARDS!]
$if[$roleExists[$getServerVar[role5]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role5]]==5false]
**$username** Congratulations, you're level 5 now, and got rewarded with the role **$roleName[$getServerVar[role5]]**!
$giveRole[$authorID;$getServerVar[role5]]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role10]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role10]]==10false]
**$username** Congratulations, you're level 10 now, and got rewarded with the role **$roleName[$getServerVar[role10]]**!
$giveRole[$authorID;$getServerVar[role10]]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role15]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role15]]==15false]
**$username** Congratulations, you're level 15 now, and got rewarded with the role **$roleName[$getServerVar[role15]]**!
$giveRole[$authorID;$getServerVar[role15]]
$onlyIf[$hasRole[$authorID;$getServerVar[role15]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role20]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role20]]==20false]
**$username** Congratulations, you're level 20 now, and got rewarded with the role **$roleName[$getServerVar[role20]]**!
$giveRole[$authorID;$getServerVar[role20]]
$onlyIf[$hasRole[$authorID;$getServerVar[role20]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role25]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role25]]==25false]
**$username** Congratulations, you're level 25 now, and got rewarded with the role **$roleName[$getServerVar[role25]]**!
$giveRole[$authorID;$getServerVar[role25]]
$onlyIf[$hasRole[$authorID;$getServerVar[role25]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role30]]==30false]
**$username** Congratulations, you're level 30 now, and got rewarded with the role **$roleName[$getServerVar[role30]]**!
$giveRole[$authorID;$getServerVar[role30]]
$onlyIf[$hasRole[$authorID;$getServerVar[role30]]==false;]
$else
$endif
$else
$endif
$suppressErrors
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
RANK CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]?size=4096;webp;jpg;-1]&level=$getUserVar[level;$mentioned[1;yes]]&rank=¤txp=$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];35];-;;1]&nextlevelxp=$replaceText[$getUserVar[req;$mentioned[1;yes]];-;;1]&previouslevelxp=0&custombg=$getUserVar[custombg;$mentioned[1;yes]]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
$footer[$replaceText[$replaceText[%$checkCondition[$username[$mentioned[1;yes]]==$username[$authorID]]%;%true%;You;1];%false%;$username[$mentioned[1;yes]];1] need $sum[$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];$getUserVar[req;$mentioned[1;yes]]];-;;1];35] more of EXP to level up]
$onlyIf[$isBot[$mentioned[1;yes]]==false;**$username** Well.. you can't see the level of a bot]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
BLACKLIST CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$c[ ENABLE UNSTABLE MODE! ]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$author[Blacklisted!]
$description[**$username** Successfully blacklisted the channel <#$mentionedChannels[<]>, now users won't be able to gain EXP there!
You can unblacklist the channel back by doing +unblacklist #channel]
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
$setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted], $mentionedChannels[<] ]
$onlyAdmin[**$username** only administrators can set this!]
$onlyIf[$channelExists[$mentionedChannels[<]]==true;**$username** Please, mention a valid channel to blacklist]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
UNBLACKLIST CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$c[ ENABLE UNSTABLE MODE! ]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$author[Unblacklisted!]
$description[Successfully unblacklisted the channel <#$mentionedChannels[<]>, now users would've able to gain EXP there again]
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
$setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];$mentionedChannels[<]; ;-1]]
$onlyAdmin[**$username** only administrators can set this!]
$onlyIf[$channelExists[$mentionedChannels[<]]==true;**$username** Please, mention a valid channel to blacklist]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
SETMSG CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$c[ ENABLE UNSTABLE MODE! ]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$author[Level up message setted]
$description[Successfully setted the level up message to:
```$message```
When someone level up, i'll send that message!
$replaceText[$replaceText[%$checkContains[$message;{username};{user.id};{level}]%;%true%;;-1];%false%;**WARNING**: You didn't setted any FUNCTION, it is recommended to set {functions} in the leveling message, such as: **+setmsg {username} You leveled up to level {level}, congratulations!**;1]]
$setServerVar[levelmsg;$message]
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
$onlyIf[$message!=;**$username** Wrong! please type a valid message, you can also use special functions such as {username}, {level} and {user.id}, for example: `**{username}** you leveled up to level {level}`!]
$onlyAdmin[**$username** only administrators can set this!]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
SET LVLCHANNEL CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$c[ ENABLE UNSTABLE MODE! ]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$author[Setted leveling channel!]
$if[$message[1]==off]
$description[**$username** Now i'll send the level up messages in the channel in where the user leveled up!]
$else
$description[**$username** Now i'll send the level up messages in the <#$mentionedChannels[<]> channel! to disable this, just do t!lvlchannel off]
$endif
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
$if[$message[1]==off]
$setServerVar[lvlchannel; ]
$else
$setServerVar[lvlchannel;$mentionedChannels[>]]
$endif
$onlyAdmin[**$username** only administrators can set this!]
$onlyIf[$message!=;**$username** Please, mention a valid channel to set as level up channel, or do **t!lvlchannel off** to set it as default]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
SET RANKCARD BACKGROUND CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$onlyIf[$checkContains[$message;https://;http://;img;.com;.net;.es;.;:;//;/;.jpg;.png;.gif;.webp;q=;images?;image?;img?;encrypted]==true;**$username** Please, make sure you wrote a valid background image URL]
$color[$random[111111;999999]]
$c[ ENABLE UNSTABLE MODE! ]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$author[Background setted]
$description[Successfully setted the custom background for your rank card!]
$setUserVar[custombg;$message[1]]
$image[$message]
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
SET ROLE REWARD CODE (REQUIRE UNSTABLE MODE EANBLED):
$nomention
$color[$random[111111;999999]]
$footer[Executed by $username#$discriminator[$authorID]]
$addTimestamp
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$c[ ENABLE UNSTABLE MODE! ]
$if[$message[2]!=off]
$setServerVar[role$message[1];$findRole[$message[2]]]
$description[Successfully setted the role <@&$findRole[$message[2]]> as reward for level **$message[1]**!
When users level up to level **$message[1]** i'll give them that role
**If you want to remove the reward for certain level, just do +setreward 5 off** (example)]
$onlyIf[$roleExists[$findRole[$message[2]]]==true;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
$onlyIf[$message[2]!=;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
$else
$setServerVar[role$message[1];]
$description[Successfully removed the role reward for the level **$message[1]**!
When users level up to level **$message[1]** i won't give them any role]
$endif
$onlyIf[$message[2]!=;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
$onlyIf[$checkContains[$message[1];5;10;15;20;25;30]==true;**$username** please, type a valid level from: **5, 10, 15, 20, 25** and **30**, example: +setreward 5 @role]
$onlyPerms[manageroles;**$username** You need manage roles permissions to do this!]
$onlyBotPerms[manageroles;**$username** Sorry, but i need manage roles permissions to do this, make sure to give me that permission!]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
CHECK REWARDS CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$color[$random[111111;999999]]
$author[Role rewards]
$c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
$c[ ENABLE UNSTABLE MODE! ]
$description[You get awesome roles by leveling up, below you can see a list of them!
__**Level 5**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role5]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role5]>;1]
Progress: Level $getUserVar[level]/5 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=5]%;%true%;(Reached);1];%false%;(Not reached yet);1]
__**Level 10**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role10]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role10]>;1]
Progress: Level $getUserVar[level]/10 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=10]%;%true%;(Reached);1];%false%;(Not reached yet);1]
__**Level 15**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role15]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role15]>;1]
Progress: Level $getUserVar[level]/15 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=15]%;%true%;(Reached);1];%false%;(Not reached yet);1]
__**Level 20**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role20]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role20]>;1]
Progress: Level $getUserVar[level]/20 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=20]%;%true%;(Reached);1];%false%;(Not reached yet);1]
__**Level 25**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role25]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role25]>;1]
Progress: Level $getUserVar[level]/25 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=25]%;%true%;(Reached);1];%false%;(Not reached yet);1]
__**Level 30**__
Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role30]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role30]>;1]
Progress: Level $getUserVar[level]/30 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=30]%;%true%;(Reached);1];%false%;(Not reached yet);1]
]
$footer[Level up to get those awesome roles!]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
SET LEVEL CODE (REQUIRE UNSTABLE MODE ENABLED):
$nomention
$author[Level setted]
$color[$random[111111;999999]]
$description[Successfully setted the level of <@$mentioned[<]>, now that user is level $noMentionMessage]
$setUserVar[level;$noMentionMessage;$mentioned[<]]
$onlyIf[$isNumber[$noMentionMessage]==true;Please, type a valid level!]
$onlyIf[$mentioned[1]!=;Please, mention a user!]
$addTimestamp
$footer[Executed by $username]
$onlyAdmin[Only admins can set users level!]
====================================================================================
====================================================================================
====================================================================================
====================================================================================
====================================================================================
©〣Dieser Code wurde von Berk erstellt
WENN SIE HILFE BENÖTIGEN, KÖNNEN SIE HIER FRAGEN:
https://dsc.gg/codes
BEVOR SIE BEGINNEN, WÜRDEN SIE SICH BEACHTEN, DASS ALLE BEFEHLE IN DIESER PASTEBIN DURCH DAS UNTEN STEHENDE SEPARATOR ===== GETRENNT SIND, SO DASS JEDES SYMBOL EINEN ANDEREN BEFEHL TRENNT.
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
VARIABLEN, DIE SIE HINZUFÜGEN MÜSSEN, MIT IHREN WERTEN:
Custombg
value=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQz8TueHUgVNroUgCgN5d35oo5Kg_LuFN6CHToIXL4pPSK-AL8FXgjEyBUcJlg97sMcrqg&usqp=CAU
talk
Wert=0
level
Wert=0
req
Wert=250
levelmsg
value=**{username}** Du bist aufgestiegen! Ihr neues Level ist {level}
lvlchannel
Wert=
lvlblacklisted
Wert=
Rolle5
Wert=
Rolle10
Wert=
Rolle15
Wert=
Rolle20
Wert=
role25
Wert=
role30
Wert=
message
Wert = 0
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
ERHALTEN SIE EXP-CODE, SIE MÜSSEN DIESEN CODE IN EINEM BEFEHL FÜR JEDEN BUCHSTABEN HINZUFÜGEN (von a-z bis A-Z oder das gesamte Alphabet Ihres Landes, ein Befehl pro Buchstabe als Auslöser). Stellen Sie außerdem sicher, dass Sie den instabilen Modus für alle Befehle aktivieren:
$nomention
$c[ Bitte bearbeiten Sie den Code nicht, wenn Sie nicht wissen, wie er funktioniert, Sie können ihn beschädigen! Verwenden Sie stattdessen die Variablen und AKTIVIEREN SIE UNSTABLE MODE!]
$onlyIf[$guildID!=;Ich kann ihnen nicht in Direktnachrichten helfen]
$cooldown[2s;]
$setUserVar[message;$sum[$getUserVar[message];1]]
$if[$getUserVar[talk]>$getUserVar[req]]
$setUserVar[level;$sum[$getUserVar[level];1]]
$setUserVar[req;$sum[$getUserVar[req];$random[0;60]]]
$setUserVar[talk;0]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$channelSendMessage[$replaceText[$replaceText[%$checkCondition[$getServerVar[lvlchannel]==]%;%true%;$channelID;1];%false%;$getServerVar[lvlchannel];1];$replaceText[$ replaceText[$replaceText[$replaceText[$getServerVar[levelmsg];{username};$username;-1];{level};$sum[$getUserVar[level];1];-1];{mention};< @$authorID>;-1];{user.id};$authorID;-1]]
$else
$setUserVar[talk;$sum[$getUserVar[talk];$random[1;35]]]
$endif
$onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
$suppressErrors
$c[LEVEL-UP-ROLLEN UNTEN – ACHTEN SIE DARAUF, DEM BOT „MANAGEROLES“-BERECHTIGUNGEN ZU GEBEN, WENN SIE LEVEL-BELOHNUNGEN FESTLEGEN!]
$if[$roleExists[$getServerVar[role5]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role5]]==5false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 5 und wurden mit der Rolle **$roleName[$getServerVar[role5]]** belohnt!
$giveRole[$authorID;$getServerVar[role5]]
$sonst
$endif
$sonst
$endif
$if[$roleExists[$getServerVar[role10]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role10]]==10false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 10 und wurden mit der Rolle **$roleName[$getServerVar[role10]]** belohnt!
$giveRole[$authorID;$getServerVar[role10]]
$sonst
$endif
$else
$endif
$if[$roleExists[$getServerVar[role15]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role15]]==15false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 15 und wurden mit der Rolle **$roleName[$getServerVar[role15]]** belohnt!
$giveRole[$authorID;$getServerVar[role15]]
$onlyIf[$hasRole[$authorID;$getServerVar[role15]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role20]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role20]]==20false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 20 und wurden mit der Rolle **$roleName[$getServerVar[role20]]** belohnt!
$giveRole[$authorID;$getServerVar[role20]]
$onlyIf[$hasRole[$authorID;$getServerVar[role20]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role25]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role25]]==25false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 25 und wurden mit der Rolle **$roleName[$getServerVar[role25]]** belohnt!
$giveRole[$authorID;$getServerVar[role25]]
$onlyIf[$hasRole[$authorID;$getServerVar[role25]]==false;]
$else
$endif
$else
$endif
$if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
$if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role30]]==30false]
**$username** Herzlichen Glückwunsch, Sie sind jetzt Level 30 und wurden mit der Rolle **$roleName[$getServerVar[role30]]**!
$giveRole[$authorID;$getServerVar[role30]]
$onlyIf[$hasRole[$authorID;$getServerVar[role30]]==false;]
$else
$endif
$else
$endif
$suppressErrors
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
RANGCODE (AKTIVIERTER INSTABILER MODUS ERFORDERLICH):
$nomention
$color[$random[111111;999999]]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$description[Level von]
image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]?size=4096;webp;jpg;-1]&level=$getUserVar[level;$mentioned[1;yes]]&rank=¤txp=$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];35];-;;1]&nextlevelxp=$replaceText[$getUserVar[req;$mentioned[1;yes]];-;;1]&previouslevelxp=0&custombg=$getUserVar[custombg;$mentioned[1;yes]]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
$footer[$replaceText[$replaceText[%$checkCondition[$username[$claimed[1;yes]]==$username[$authorID]]%;%true%;You;1];%false%;$username [$claimed[1;yes]];1] need $sum[$replaceText[$sub[$getUserVar[talk;$claimed[1;yes]];$getUserVar[req;$claimed[1;yes]]] ;-;;1];35] mehr EXP zum Levelaufstieg]
$onlyIf[$isBot[$mentioned[1;yes]]==false;**$username** Naja... man kann das Level eines Bots nicht sehen]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
Blacklist-Code (unstabiler Modus erforderlich):
$nomention
$color[$random[111111;999999]]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$author[Auf der schwarzen Liste!]
$description[**$username** Der Kanal <#$mentionedChannels[<]> wurde erfolgreich auf die schwarze Liste gesetzt, jetzt können Benutzer dort keine EXP mehr sammeln!
Sie können die Blacklist des Kanals wieder aufheben, indem Sie +unblacklist #channel] ausführen.
$footer[Ausgeführt von $username]
$addTimestamp
$setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted], <#$mentionedChannels[<]]
$onlyAdmin[**$username** Nur Administratoren können dies festlegen!]
$onlyIf[$channelExists[<#$mentionedChannels[<]> ]==true;**$username** Bitte geben Sie einen gültigen Kanal für die Blacklist an.]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
UNBLACKLIST-CODE (AKTIVIERTER INSTABILER MODUS ERFORDERLICH):
$nomention
$color[$random[111111;999999]]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$author[Nicht auf der schwarzen Liste!]
$description[Die schwarze Liste des Kanals <#$mentionedChannels[<]> wurde erfolgreich aufgehoben, jetzt hätten Benutzer dort wieder EXP sammeln können]
$footer[Ausgeführt von $username#$discriminator[$authorID]]
$addTimestamp
$setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];<#$mentionedChannels[<]; ;-1]]
$onlyAdmin[**$username** Nur Administratoren können dies festlegen!]
$onlyIf[$channelExists[<#$mentionedChannels[<]]==true;**$username** Bitte geben Sie einen gültigen Kanal für die Blacklist an.]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
SETMSG-CODE (AKTIVIERTER INSTABILER MODUS ERFORDERLICH):
$nomention
$color[$random[111111;999999]]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$author[Nachricht zum Levelaufstieg festgelegt]
$description[Die Level-Up-Nachricht wurde erfolgreich auf Folgendes gesetzt:
```$message```
Wenn jemand ein Level aufsteigt, sende ich diese Nachricht!
$replaceText[$replaceText[%$checkContains[$message;{username};{user.id};{level}]%;%true%;;-1];%false%;**WARNUNG**: Das haben Sie getan Da keine FUNKTION festgelegt wurde, wird empfohlen, {Funktionen} in der Level-Nachricht festzulegen, z. B.: **+setmsg {username} Sie haben das Level auf Level {level} erhöht, conHerzlichen Glückwunsch!**;1]]
$setServerVar[levelmsg;$message]
$footer[Ausgeführt von $username#$discriminator[$authorID]]
$addTimestamp
$onlyIf[$message!=;**$username** Falsch! Bitte geben Sie eine gültige Nachricht ein. Sie können auch spezielle Funktionen wie {Benutzername}, {Level} und {Benutzer-ID} verwenden, zum Beispiel: „**{Benutzername}** Sie haben das Level bis zum Level {Level} erreicht!]
$onlyAdmin[**$username** Nur Administratoren können dies festlegen!]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
LVLCHANNEL-CODE EINSTELLEN (INSTABILER MODUS AKTIVIERT ERFORDERN):
$nomention
$color[$random[111111;999999]]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$author[Leveling-Kanal eingestellt!]
$if[$message[1]==off]
$description[**$username** Jetzt sende ich die Levelaufstiegsnachrichten in dem Kanal, in dem der Benutzer aufgestiegen ist!]
$sonst
$description[**$username** Jetzt sende ich die Level-Up-Nachrichten im Kanal <#$mentionedChannels[<]> ! Um dies zu deaktivieren, führen Sie einfach t!lvlchannel aus]
$endif
$footer[Ausgeführt von $username]
$addTimestamp
$if[$message[1]==off]
$setServerVar[lvlchannel; ]
$sonst
$setServerVar[lvlchannel;$mentionedChannels[<] ]
$endif
$onlyAdmin[**$username** Nur Administratoren können dies festlegen!]
$onlyIf[$message!=;**$username** Bitte geben Sie einen gültigen Kanal an, der als Level-Up-Kanal festgelegt werden soll, oder deaktivieren Sie **t!lvlchannel**, um ihn als Standard festzulegen]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
Rankcard-Hintergrundcode festlegen (unstabiler Modus erforderlich):
$nomention
$onlyIf[$checkContains[$message;https://;http://;img;.com;.net;.es;.;:;//;/;.jpg;.png;.gif;.webp ;q=;images?;image?;img?;encrypted]==true;**$username** Bitte stellen Sie sicher, dass Sie eine gültige Hintergrundbild-URL eingegeben haben]
$color[$random[111111;999999]]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$author[Hintergrund festgelegt]
$description[Der benutzerdefinierte Hintergrund für Ihre Rangkarte wurde erfolgreich festgelegt!]
$setUserVar[custombg;$message[1]]
$image[$message]
$footer[Ausgeführt von $username#$discriminator[$authorID]]
$addTimestamp
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
ROLLENBELOHNUNGSCODE FESTLEGEN (ANBINDUNG DES INSTABILEN MODUS ERFORDERLICH):
$nomention
$color[$random[111111;999999]]
$footer[Ausgeführt von $username#$discriminator[$authorID]]
$addTimestamp
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$if[$message[2]!=off]
$setServerVar[role$message[1];$findRole[$message[2]]]
$description[Die Rolle <@&$findRole[$message[2]]> wurde erfolgreich als Belohnung für Level **$message[1]** festgelegt!
Wenn Benutzer die Stufe **$message[1]** erreichen, gebe ich ihnen diese Rolle
**Wenn Sie die Belohnung für ein bestimmtes Level entfernen möchten, tun Sie einfach +setreward 5 off** (Beispiel)]
$onlyIf[$roleExists[$findRole[$message[2]]]==true;**$username** Bitte geben Sie eine gültige Rollen-ID, Erwähnung oder einen gültigen Namen ein, Beispiel: +setreward 5 @role]
$onlyIf[$message[2]!=;**$username** Bitte geben Sie eine gültige Rollen-ID, Erwähnung oder einen gültigen Namen ein, Beispiel: +setreward 5 @role]
$sonst
$setServerVar[role$message[1];]
$description[Die Rollenbelohnung für das Level **$message[1]** wurde erfolgreich entfernt!
Wenn Benutzer auf Level **$message[1]** aufsteigen, werde ich ihnen keine Rolle zuweisen]
$endif
$onlyIf[$message[2]!=;**$username** Bitte geben Sie eine gültige Rollen-ID, Erwähnung oder einen gültigen Namen ein, Beispiel: +setreward 5 @role]
$onlyIf[$checkContains[$message[1];5;10;15;20;25;30]==true;**$username** Bitte geben Sie eine gültige Ebene ein von: **5, 10, 15, 20, 25** und **30**, Beispiel: +setreward 5 @role]
$onlyPerms[manageroles;**$username** Dazu benötigen Sie Berechtigungen zum Verwalten von Rollen!]
$onlyBotPerms[manageroles;**$username** Tut mir leid, aber ich benötige dazu die Berechtigung zum Verwalten von Rollen. Stellen Sie sicher, dass Sie mir diese Berechtigung erteilen!]
=============================================== =================================
=============================================== =================================
===============
=============================================== ===================
=============================================== =================================
=============================================== =================================
PRÜFEN SIE DEN BELOHNUNGSCODE (AKTIVIERTER INSTABILER MODUS ERFORDERLICH):
$nomention
$color[$random[111111;999999]]
$author[Rollenbelohnungen]
$c[ Code von Berk#3506 | YT: Bot-Designer für Discord: Leitfaden | DM bei Fehlern]
$c[ INSTABILEN MODUS AKTIVIEREN! ]
$description[Du erhältst tolle Rollen, indem du aufsteigst. Unten siehst du eine Liste davon!
__**Level 5**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role5]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role5]>;1]
Fortschritt: Level $getUserVar[level]/5 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=5]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
__**Stufe 10**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role10]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role10]>;1]
Fortschritt: Level $getUserVar[level]/10 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=10]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
__**Stufe 15**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role15]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role15]>;1]
Fortschritt: Level $getUserVar[level]/15 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=15]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
__**Stufe 20**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role20]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role20]>;1]
Fortschritt: Level $getUserVar[level]/20 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=20]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
__**Stufe 25**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role25]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role25]>;1]
Fortschritt: Level $getUserVar[level]/25 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=25]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
__**Stufe 30**__
Rolle: $replaceText[$replaceText[%$checkCondition[$getServerVar[role30]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role30]>;1]
Fortschritt: Level $getUserVar[level]/30 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=30]%;%true%;(Erreicht);1];%false%;(Noch nicht erreicht );1]
]
$footer[Steige im Level auf, um diese tollen Rollen zu bekommen!]
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
=============================================== =================================
LEVEL-CODE EINSTELLEN (INSTABILER MODUS AKTIVIERT ERFORDERLICH):
$nomention
$author[Level festgelegt]
$color[$random[111111;999999]]
$description[Das Level von <@$mentioned[<]> wurde erfolgreich festgelegt, jetzt hat der Benutzer die Ebene $noMentionMessage]
$setUserVar[level;$noMentionMessage;$mentioned[<]]
$onlyIf[$isNumber[$noMentionMessage]==true;Bitte geben Sie eine gültige Ebene ein!]
$onlyIf[$mentioned[1]!=;Bitte erwähnen Sie einen Benutzer!]
$addTimestamp
$footer[Ausgeführt von $username]
$onlyAdmin[Nur Administratoren können die Benutzerebene festlegen!]
=============================================== =================================
=============================================== =================================
BESTENLISTE
=============================================== =================================
=============================================== =================================
=============================================== =================================
WENN SIE HILFE BENÖTIGEN, KÖNNEN SIE HIER FRAGEN:
https://dsc.gg/codes
Stellen Sie sicher, dass Sie alles gut kopiert haben!
Command language : BDSCRIPT 2
$nomention
$var[apikey;Geben sie hier ihren API Key ein]
$var[normal_color;#00ff9b]
$var[success_color;#41ff00]
$httpAddHeader[Authorization;$var[apikey]]
$httpGet[https://top.gg/api/bots/$botID/check?userId=$authorID]
$if[$checkContains[$httpResult[voted];1]==true] $var[voted;true] $else $var[voted;false] $endif
$if[$var[voted]==true]
$cooldown[12h;> Kommen sie <t:$sum[$getTimestamp;$getCooldown[normal]]:R> wieder um ihre Belohnung zu beanspruchen`]
$sendEmbedMessage[1143209721034178621;;$username hat für mich gestimmt;https://top.gg/bot/1141071194423046194;
<@$authorID> hat für mich gevoted!;$getVar[color];$username;$authorAvatar;Komme in 12 Stunden wieder um erneut zu voten;;https://cdn.discordapp.com/attachments/1141071891336007720/1143613956984946809/vote-button-choice.png;;yes;no]
$embeddedURL[https://discord.gg/Y3em8nPRMs]
$title[Belohnungsanspruch erfolgreich!]
$description[
> Sie haben erfolgreich folgende Belohnungen erhalten :
> <a:Coin:1013517092504473631>〣`1500` Coins
> <:Pokal:962215755380846612>〣`1` Level]
$setUserVar[level;$sum[1;$getUserVar[level]]]
$setUserVar[bank;$sum[1500;$getUserVar[bank]]]
$color[$var[success_color]]
$else
$title[Stimmen Sie ab, um Ihre Belohnung einzufordern!]
$description[Sie müssen **abstimmen**, um Ihre Belohnung zu erhalten, indem Sie [hier klicken\](https://top.gg/bot/$botID/vote) oder auf die Schaltfläche unter diesem Beitrag klicken, um abzustimmen.
Sie können alle **12 Stunden** für den Bot stimmen und ihre Belohnung beanspruchen.]
$addButton[no;https://top.gg/bot/$botID/vote;Stimme für mich!;link;]
$color[$var[normal_color]]
$endif
$endif
Command language : BDSCRIPT 2
$nomention
$var[apikey;Enter your api Key here]
$var[normal_color;#00ff9b]
$var[success_color;#41ff00]
$httpAddHeader[Authorization;$var[apikey]]
$httpGet[https://top.gg/api/bots/$botID/check?userId=$authorID]
$if[$checkContains[$httpResult[voted];1]==true] $var[voted;true] $else $var[voted;false] $endif
$if[$var[voted]==true]
$cooldown[12h;> <a:Timer:979104538613153812>〣Come back <t:$sum[$getTimestamp;$getCooldown[normal]]:R> to claim your reward`]
$sendEmbedMessage[1143209721034178621;;$username voted for me;https://top.gg/bot/1141071194423046194;
<@$authorID> voted for me!;$getVar[color];$username;$authorAvatar;Come back in 12 hours to vote again;;https://cdn.discordapp.com/attachments/1141071891336007720/1143613956984946809/ vote-button-choice.png;;yes;no]
$embeddedURL[https://discord.gg/Y3em8nPRMs]
$title[Reward claim successful!]
$description[
> You have successfully received the following rewards:
> <a:Coin:1013517092504473631>〣`1500` Coins
> <:Cup:962215755380846612>〣`1` Level]
$setUserVar[level;$sum[1;$getUserVar[level]]]
$setUserVar[bank;$sum[1500;$getUserVar[bank]]]
$color[$var[success_color]]
$else
$title[Vote to claim your reward!]
$description[You must **vote** to receive your reward by [clicking here\](https://top.gg/bot/$botID/vote) or clicking the button below this post to to vote.
You can vote for the bot and claim your reward every **12 hours**.]
$addButton[no;https://top.gg/bot/$botID/vote;Vote for me!;link;]
$color[$var[normal_color]]
$endif
$endif
Variable
channel = 0
$nomention
$onlyPerms[managechannels;> $username du brauchst die Rechte Kanäleverwalten um diesen Befehl auszuführen]
$onlyBotPerms[managechannels;> Ich benötig die Berechtigung "Kanäleverwalten" um diesen Befehl auszuführen!]
$argsCheck[>1;> Bitte erwähne einen Kanal]
$if[$channelExists[$noMentionMessage]==true]
$setServerVar[channel;$message]
$description[```Hey $username,
Wählen Sie eine der folgenden Optionen aus, um den Kanal zu bearbeiten.```]
$color[$getVar[color]]
$addButton[no;cooldown;;secondary;no;⏳]
$addButton[no;desc;;secondary;no;📋]
$addButton[no;lock;;secondary;no;🔒]
$addButton[no;unlock;;secondary;no;🔓]
$else
$title[Kanal nicht gefunden]
$description[Der von Ihnen angegebene Kanal scheint nicht zu existieren.]
$color[ff0000]
$endif
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Trigger :$onInteraction[cooldown]
$nomention
$newModal[cooldown2;Einstellungen]
$addTextInput[cooldown;paragraph;label;1;2;true; ;Verwenden Sie s für Sekunde und m für Minute]
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Trigger : $onInteraction[cooldown2]
Command language : BDSCRIPT 2
$nomention
$embedSuppressErrors[Fehler; Es ist ein Fehler aufgetreten. Bitte prüfen Sie, ob ich über die erforderlichen Berechtigungen verfüge oder ob Ihre Informationen gültig sind.;ff0000;;;]
$slowmode[$getServerVar[channel];$input[cooldown]]
$description[Der langsame Modus für <#$getServerVar[channel]> wurde erfolgreich auf „$input[cooldown]“ gesetzt]
-------------------------------------------------------------------------------------------------------------
Trigger : $onInteraction[desc]
$nomention
$newModal[desc2;Einstellungen]
$addTextInput[desc;paragraph;label;1;450;true; ;Geben Sie hier die neue Kanalbeschreibung ein]
__________________________________________________________________________________
Trigger : $onInteraction[desc2]
Command language : BDSCRIPT 2
$nomention
$embedSuppressErrors[Fehler; Es ist ein Fehler aufgetreten. Bitte prüfen Sie, ob ich über die erforderlichen Berechtigungen verfüge oder ob Ihre Informationen gültig sind.;ff0000;;;]
$modifyChannel[$getServerVar[channel];!unchanged;$input[desc];!unchanged;!unchanged;!unchanged]
$description[Die Kanalbeschreibung für <#$getServerVar[channel]> wurde zu `$input[desc]` geändert.]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Trigger : $onInteraction[lock]
$nomention
$modifyChannelPerms[$getServerVar[channel];-sendmessages;$guildID]
$description[Channel <#$getServerVar[channel]> was blocked by <@$authorID>!]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Trigger : $onInteraction[unlock]
$nomention
$modifyChannelPerms[$getServerVar[channel];+sendmessages;$guildID]
$description[Channel <#$getServerVar[channel]> was unlocked by <@$authorID>!]
Variabler Kanal = 0
$nomention
$onlyPerms[managechannels;> $username Sie benötigen die Berechtigungen managechannels, um diesen Befehl auszuführen]
$onlyBotPerms[managechannels;> ich benötige die Berechtigung managechannels, um diesen Befehl auszuführen]
$argsCheck[>1;> Bitte geben Sie einen Kanal an]
$if[$channelExists[$noMentionMessage]==true]
$setServerVar[channel;$message]
$description[```Hey $username,
Wählen Sie eine der folgenden Optionen aus, um den Kanal zu bearbeiten.```]
$color[$getVar[color]]
$addButton[no;cooldown;;secondary;no;⏳]
$addButton[no;desc;;secondary;no;📋]
$addButton[no;lock;;secondary;no;🔒]
$addButton[no;unlock;;secondary;no;🔓]
$else
$title[Kanal nicht gefunden]
$description[Der von Ihnen angegebene Kanal scheint nicht zu existieren.]
$color[ff0000]
$endif
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -----------------------------------
Auslöser :$onInteraction[cooldown]
$nomention
$newModal[cooldown2;Einstellungen]
$addTextInput[cooldown;paragraph;label;1;2;true; ;s für Sekunde und m für Minute verwenden]
---------------------------------------- - ------------------------------------------------- - ------------------------------------------------- - ------------------------------------------------- - -
Auslöser: $onInteraction[cooldown2]
Befehlssprache: BDSCRIPT 2
$nomention
$embedSuppressErrors[Fehler;Es ist ein Fehler aufgetreten, bitte prüfen Sie, ob ich über die nötigen Berechtigungen verfüge bzw. ob Ihre Angaben gültig sind.;ff0000;;;]
$slowmode[$getServerVar[channel];$input[cooldown]]
$description[Der langsame Modus für <#$getServerVar[channel]> wurde erfolgreich auf „$input[cooldown]“ gesetzt]
----------------------- -------------------------------------------------- -------------------------------------
Auslöser: $onInteraction[desc]
$nomention
$newModal[desc2;Einstellungen]
$addTextInput[desc;paragraph;label;1;450;true; ;Geben Sie hier die neue Kanalbeschreibung ein]
__________________________________________________________________________________
Trigger: $onInteraction[desc2]
Befehlssprache: BDSCRIPT 2
$nomention
$embedSuppressErrors[Fehler;Es ist ein Fehler aufgetreten, bitte prüfen Sie, ob ich über die nötigen Berechtigungen verfüge bzw. ob Ihre Angaben gültig sind.;ff0000;;;]
$modifyChannel[$getServerVar[channel];!unchanged;$input[desc];!unchanged;!unchanged;!unchanged]
$description[Die Kanalbeschreibung für <#$getServerVar[channel]> wurde zu `$input[desc]` geändert.]
----------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ----------
Auslöser: $onInteraction[lock]
$nomention
$modifyChannelPerms[$getServerVar[channel];-sendmessages;$guildID]
$description[Channel <#$getServerVar[channel]> wurde von <@$authorID> blockiert!]
---------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -----
Auslöser: $onInteraction[unlock]
$nomention
$modifyChannelPerms[$getServerVar[channel];+sendmessages;$guildID]
$description[Kanal <#$getServerVar[channel]> wurde von <@$authorID> freigeschaltet!]
Trigger : !flagquiz
Command language : BDSCRIPT 2
$nomention
$onlyIf[$guildID!=;<:abbrechen:1025819352848670770>〣Ich kann ihnen nicht in Direktnachrichten helfen]
$title[Flaggen Quiz]
$setUserVar[flag_quiz;$randomText[🇩🇪;🇫🇷;🇵🇱;🇹🇼;🇳🇵;🇰🇷;🇮🇸;🇬🇷]]
$if[$getUserVar[flag_quiz]==🇩🇪]
$description[`Welche Flagge ist das?`
`In diesem Land gibt es rund 3.200 unterschiedliche Brotspezialitäten vorweisen kann.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178289138227757126/Deutsche_Flagge.png?ex=65759a46&is=65632546&hm=8e1a471a9a244b98449bd50be1103fa85346633813e9f3bedb4e98966cb157fd&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;deutschland]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[----------------------------------------------------------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇫🇷]
$description[`Welche Flagge ist das?`
` Das typische Wertegerüst in diesem Land fußt auf Freiheit, Gleichheit, Brüderlichkeit..`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178290166603993088/Frankreich.png?ex=65759b3b&is=6563263b&hm=cfd073875655f2d1a7a571beb27c55709c42d587e0bc3bf89d1f31bdcd02c874&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;frankreich]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[------------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇵🇱]
$description[`Welche Flagge ist das?`
` Sämige Eintöpfe und gefüllte Teigtaschen, reichlich Fleisch und Rote-Bete-Suppe sind sehr beliebt in dem Land.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178291887250083961/flagge-polen.jpg?ex=65759cd5&is=656327d5&hm=4c9b527122e542fa2551168f53354537a16988df6af1792eb1c92e4477eb2dfc&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;polen]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[-------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇹🇼]
$description[`Welche Flagge ist das?`
`Dieses Land ist ein führendes Zentrum für Technologie und Elektronikproduktion.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178292586901942342/Taiwan_Flagge.png?ex=65759d7c&is=6563287c&hm=9a3526e16cf56b00f9cf2a104579845e07095e801095d25c4235f1b3989e95a4&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;taiwan]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[.-----------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇳🇵]
$description[`Welche Flagge ist das?`
`Dieses Land beherbergt acht der vierzehn höchsten Berge der Welt, darunter den Mount Everest, den höchsten Gipfel der Erde. Die majestätische Berglandschaft zieht Bergsteiger, Trekking-Enthusiasten und Naturliebhaber aus aller Welt an.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178293023189237811/Flag_of_Nepal.png?ex=65759de4&is=656328e4&hm=a3743bbd927c2bfafa61d350c06e8f23d13706754ea035aeb72bec95bb4c8fba&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;nepal]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[-----------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇰🇷]
$description[`Welche Flagge ist das?
Dies Land ist weltweit bekannt für seine Popmusik und Fernsehserien. K-Pop-Gruppen wie BTS und K-Dramen haben eine große internationale Fangemeinde.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178294615594500186/Flag_of_South_Korea.png?ex=65759f60&is=65632a60&hm=62e637e95892687f9f1e641269ef16f91c3cae4baf660498e0bb096ab4dad914&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;süd korea]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇮🇸]
$description[`Welche Flagge ist das?
Das Land ist reich an geothermischer Energie. Heiße Quellen, Geysire und natürliche heiße Bäder wie die Blaue Lagune sind charakteristisch für das Land.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178295473807818833/flagge-island.png?ex=6575a02c&is=65632b2c&hm=9bdf5c0b966b804378788643cfdcd7b2c47372b7a157aded5f5016c36b8866cd&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;island]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[---------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇬🇷]
$description[`Welche Flagge ist das?
Die antiken Olympischen Spiele wurden in diesem Land geboren. Heute feiert das Land weiterhin den olympischen Geist.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178296237171146832/Griechenland_Flagge.png?ex=6575a0e2&is=65632be2&hm=8ce58c588f77ca4b30b1eab3ef61d072039bbaaf0d48b84146044613a716361c&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;griechenland]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$endif
$endif
---------------------------------------------------------------------------------------------------------------------------------------
Code 2
Trigger : $awaitedCommand[flagquiz;]
$nomention
$if[$toLowercase[$message]==$getUserVar[flag_respond]]
$description[`🎉`・Deine Antwort war korrekt, du hast die gesuchte Flagge erraten!
> Unterstütze uns gerne mit einem Abonnement [Youtube](https://www.youtube.com/channel/UCh4GWL6JveUYz5zogKzC-4g)]
$color[00ff82]
$else
$description[`🚫`・Ups, das war leider Falsch, die gesuchte Flagge war ||$getUserVar[flag_respond]||
> `💬`・$message]
$color[ff0024]
$endif
Trigger: !flag quiz
Command language: BD SCRIPT 2
$nomention
$onlyIf[$guildID!=;<:abbrechen:1025819352848670770>〣I can't help you in DMs]
$title[Flaggen Quiz]
$setUserVar[flag_quiz;$randomText[🇩🇪;🇫🇷;🇵🇱;🇹🇼;🇳🇵;🇰🇷;🇮🇸;🇬🇷]]
$if[$getUserVar[flag_quiz]==🇩🇪]
$description[`Which flag is that?`
"This country has around 3,200 different bread specialties."]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178289138227757126/Deutsche_Flagge.png?ex=65759a46&is=65632546&hm=8e1a471a9a244b98449bd50be1103fa85346633813e9f3bedb4e98966cb157fd&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;germany]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[----------------------------------------------------------------------------------------------------------------------------------------------------------------------]
$c[----------------------------------------------------------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇫🇷]
$description[`Which flag is that?`
"The typical value structure in this country is based on freedom, equality, fraternity..."]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178290166603993088/Frankreich.png?ex=65759b3b&is=6563263b&hm=cfd073875655f2d1a7a571beb27c55709c42d587e0bc3bf89d1f31bdcd02c874&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;france]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[------------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇵🇱]
$description[`Which flag is that?`
`Chewy stews and filled dumplings, plenty of meat and beetroot soup are very popular in the country.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178291887250083961/flagge-polen.jpg?ex=65759cd5&is=656327d5&hm=4c9b527122e542fa2551168f53354537a16988df6af1792eb1c92e4477eb2dfc&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;poland]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[-------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇹🇼]
$description[`Which flag is that?`
"This country is a leading center for technology and electronics production."]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178292586901942342/Taiwan_Flagge.png?ex=65759d7c&is=6563287c&hm=9a3526e16cf56b00f9cf2a104579845e07095e801095d25c4235f1b3989e95a4&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;taiwan]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[.-----------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇳🇵]
$description[`Which flag is that?`
`This country is home to eight of the fourteen highest mountains in the world, including Mount Everest, the highest peak on earth. The majestic mountain landscape attracts mountaineers, trekking enthusiasts and nature lovers from all over the world.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178293023189237811/Flag_of_Nepal.png?ex=65759de4&is=656328e4&hm=a3743bbd927c2bfafa61d350c06e8f23d13706754ea035aeb72bec95bb4c8fba&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;nepal]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[-----------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇰🇷]
$description['Which flag is that?
This country is known worldwide for its pop music and television series. K-pop groups like BTS and K-dramas have a large international fan base.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178294615594500186/Flag_of_South_Korea.png?ex=65759f60&is=65632a60&hm=62e637e95892687f9f1e641269ef16f91c3cae4baf660498e0bb096ab4dad914&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;south korea]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇮🇸]
$description[`which flag is that?
The country is rich in geothermal energy. Hot springs, geysers and natural hot baths such as the Blue Lagoon are characteristic of the country.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178295473807818833/flagge-island.png?ex=6575a02c&is=65632b2c&hm=9bdf5c0b966b804378788643cfdcd7b2c47372b7a157aded5f5016c36b8866cd&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;iceland]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$c[---------------------------------------------------------------------------------------------------------------------]
$elseif[$getUserVar[flag_quiz]==🇬🇷]
$description[`Which flag is that?
The ancient Olympic Games were born in this country. Today the country continues to celebrate the Olympic spirit.`]
$thumbnail[https://cdn.discordapp.com/attachments/1165181300517376010/1178296237171146832/Griechenland_Flagge.png?ex=6575a0e2&is=65632be2&hm=8ce58c588f77ca4b30b1eab3ef61d072039bbaaf0d48b84146044613a716361c&]
$awaitFunc[flagquiz;$authorID]
$setUserVar[flag_respond;greece]
$color[$getServerVar[color]]
$footer[$getVar[footer]]
$endif
$endif
---------------------------------------------------------------------------------------------------------------------------------------
Code 2
Trigger : $awaitedCommand[flagquiz;]
$nomention
$if[$toLowercase[$message]==$getUserVar[flag_respond]]
$description[`🎉`・Your answer was correct, you guessed the flag you were looking for!
> Please support us with a subscription [Youtube](https://www.youtube.com/channel/UCh4GWL6JveUYz5zogKzC-4g)]
$color[00ff82]
$else
$description[`🚫`・Oops, unfortunately that was wrong, the flag you were looking for was ||$getUserVar[flag_respond]||
> `💬`・$message]
$color[ff0024]
$endif
BDFD-Rubbelkartenspiel mit Geld wie Danke Memer
Variabler Cardbet-Wert: 0
Und fügen Sie Ihre Geldvariablen hinzu
Hergestellt von Mickey
1st command (prefix)scratch
$nomention
$title[Rubbeln Sie die Karten]
$onlyIf[$getVar[Money;$authorID]<=1000000000;Du bist zu reich, um etwas zu kaufen.]
$onlyIf[$isNumber[$message[1]]==true;Alter, hör auf, meinen Fehler zu überprüfen, bitte sag die Rate in Zahlen]
$onlyIf[$getVar[Money;$authorID]>=$message;Sie haben keine $message zum Spielen]
$onlyIf[1000<=$message;Sie müssen 1000 oder mehr als 1000 setzen]
$onlyIf[$noMentionMessage>=1;Versuchen Sie es mit einer positiven Zahl]
$globalCooldown[5m;Bitte warten Sie 5 Minuten, bevor Sie diesen Befehl erneut verwenden]
$setUserVar[cardbet;$message[1];$authorID]
$setVar[Money;$sub[$getVar[Money;$authorID];$message];$authorID]
$channelSendMessage[$channelID;<@$authorID> Ihnen wurden $message 💵 für Rubbellose in Rechnung gestellt]
$addButton[no;scratch1-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch2-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch3-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch4-$authorID;Auf Rubbeln;danger;no;]
$addButton[yes;scratch5-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch6-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch7-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch8-$authorID;Auf Rubbeln;danger;no;]
$addButton[yes;scratch9-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch10-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch11-$authorID;Auf Rubbeln;danger;no;]
$addButton[no;scratch12-$authorID;Auf Rubbeln;danger;no;]
$onInteraction code
$nomention
$suppressErrors[]
$var[scratchlow;$calculate[$getUserVar[cardbet;$authorID]/6]]
$var[scratchhigh;$calculate[$getUserVar[cardbet;$authorID]/4]]
$var[jackpot;$calculate[$getUserVar[cardbet;$authorID]/3]]
$var[nothing;0]
$textSplit[$var[jackpot]-$var[nothing]-$var[scratchlow]-$var[scratchhigh];-]
$if[$customID==scratch1-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten
$editButton[scratch1-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch2-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch2-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch3-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch3-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch4-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch4-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch5-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch5-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch6-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch6-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch7-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch7-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch8-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch8-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch9-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch9-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch10-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch10-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch11-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch11-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch12-$authorID]
$description[Du hast $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 vom Rubbeln der Karte erhalten]
$editButton[scratch12-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
Bdfd scratch card game with money like dank memer
variables cardbet value: 0
And add your money variable
Made by Mickey
1st command (prefix)scratch
$nomention
$title[Scratch the cards]
$onlyIf[$getVar[Money;$authorID]<=1000000000;You are too rich too gamble buy some item]
$onlyIf[$isNumber[$message[1]]==true;Dude stop checking my bug pls tell rate in number]
$onlyIf[$getVar[Money;$authorID]>=$message;You don't have $message to gamble]
$onlyIf[1000<=$message;You have to bet 1000 or more than 1000]
$onlyIf[$noMentionMessage>=1;Try positive number]
$globalCooldown[5m;Please wait 5 minutes before using this command again]
$setUserVar[cardbet;$message[1];$authorID]
$setVar[Money;$sub[$getVar[Money;$authorID];$message];$authorID]
$channelSendMessage[$channelID;<@$authorID> you were charged $message 💵 for scratch cards]
$addButton[no;scratch1-$authorID;Scratch;danger;no;]
$addButton[no;scratch2-$authorID;Scratch;danger;no;]
$addButton[no;scratch3-$authorID;Scratch;danger;no;]
$addButton[no;scratch4-$authorID;Scratch;danger;no;]
$addButton[yes;scratch5-$authorID;Scratch;danger;no;]
$addButton[no;scratch6-$authorID;Scratch;danger;no;]
$addButton[no;scratch7-$authorID;Scratch;danger;no;]
$addButton[no;scratch8-$authorID;Scratch;danger;no;]
$addButton[yes;scratch9-$authorID;Scratch;danger;no;]
$addButton[no;scratch10-$authorID;Scratch;danger;no;]
$addButton[no;scratch11-$authorID;Scratch;danger;no;]
$addButton[no;scratch12-$authorID;Scratch;danger;no;]
$onInteraction code
$nomention
$suppressErrors[]
$var[scratchlow;$calculate[$getUserVar[cardbet;$authorID]/6]]
$var[scratchhigh;$calculate[$getUserVar[cardbet;$authorID]/4]]
$var[jackpot;$calculate[$getUserVar[cardbet;$authorID]/3]]
$var[nothing;0]
$textSplit[$var[jackpot]-$var[nothing]-$var[scratchlow]-$var[scratchhigh];-]
$if[$customID==scratch1-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch1-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch2-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch2-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch3-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch3-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch4-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch4-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch5-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch5-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch6-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch6-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch7-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch7-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch8-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch8-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch9-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch9-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch10-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch10-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch11-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch11-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
$if[$customID==scratch12-$authorID]
$description[You got $randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]] 💵 from scratching this card]
$editButton[scratch12-$authorID;$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]];success;yes;]
$setVar[Money;$sum[$getVar[Money;$authorID];$randomText[$splitText[2];$splitText[2];$splitText[2];$splitText[3];$splitText[3];$splitText[4];$splitText[4];$splitText[1]]];$authorID]
$endif
Var
Money = 0
BDSCRIPT 2
$nomention
$var[bet;$message[1]]
$if[$isNumber[$var[bet]]==false]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Gib eine gültige Zahl an!]
$stop
$endif
$if[$checkContains[$var[bet];.]==true]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Gib eine gültige Zahl an!]
$stop
$endif
$if[$var[bet]>$getUserVar[Money]]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Du hast nicht genug Geld!]
$stop
$endif
$if[$var[bet]<0]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Dein Gebot kann nicht unter 0 liegen]
$stop
$endif
$var[bet;$multi[$var[bet];2]]
$if[$random[1;3]==1]
$var[ourNewBalance;$sum[$getUserVar[Money];$var[bet]]]
$color[7EFF88]
$title[Roulette]
$description[`🎉`〣Wow, du hattest Glück und hast $var[bet] gewonnen!]
$else
$var[ourNewBalance;$sub[$getUserVar[Money];$var[bet]]]
$color[FF544C]
$title[Roulette]
$if[$var[ourNewBalance]<0]
$var[ourNewBalance;0]
$description[`☹️`〣Was ein Pech! Du hast verloren und bist nun Bankrott]
$else
$description[`☹️`〣Was ein Pech1 Du hast die $var[bet] verloren.]
$endif
$endif
$setUserVar[Money;$var[ourNewBalance]]
Var
Money = 0
BDSCRIPT 2
$nomention
$var[bet;$message[1]]
$if[$isNumber[$var[bet]]==false]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Bet must be a number!]
$stop
$endif
$if[$checkContains[$var[bet];.]==true]
$color[FF544C]
$title[Roulette]
$description[`❌`〣Bet must be an integer!]
$stop
$endif
$if[$var[bet]>$getUserVar[Money]]
$color[FF544C]
$title[Roulette]
$description[`❌`〣The bet cannot be higher than your balance!]
$stop
$endif
$if[$var[bet]<0]
$color[FF544C]
$title[Roulette]
$description[`❌`〣The bet cannot be less than 0!]
$stop
$endif
$var[bet;$multi[$var[bet];2]]
$if[$random[1;3]==1]
$var[ourNewBalance;$sum[$getUserVar[Money];$var[bet]]]
$color[7EFF88]
$title[Roulette]
$description[`🎉`〣Wow, you are lucky! You have won $var[bet]!]
$else
$var[ourNewBalance;$sub[$getUserVar[Money];$var[bet]]]
$color[FF544C]
$title[Roulette]
$if[$var[ourNewBalance]<0]
$var[ourNewBalance;0]
$description[`☹️`〣What a pity! You lost and became bankrupt!]
$else
$description[`☹️`〣What a pity! You have lost the $var[bet].]
$endif
$endif
$setUserVar[Money;$var[ourNewBalance]]
Variable
hook_url= 0
Code 1
Trigger : !webhook-setup
$nomention
$if[$guildID!=]
$title[__⚙️〣webhook einreichten__]
$description[Klicken Sie auf die Schaltfläche unten, um das Formular zu öffnen. Ich empfehle Ihnen, jetzt den Webhook-Link zu kopieren!]
$addButton[no;modal;Einrichten;secondary;no;]
$endif
Code 2
Trigger : $onInteraction[hook-setup]
BDSCRIPT 2
$nomention
$ephemeral
$webhookSend[$getServerVar[hook_url];;$input[hook-title]
;https://www.youtube.com/@bdfdtools
;$input[hook-desc];$getVar[color];$username;$authorAvatar;$input[hook-footer];;;$input[hook-image];yes]
$title[Erfolgreich]
$description[<@$authorID> Ihr Webhook wurde erfolgreich gesendet,
Sie können einfach auf „Nachricht verwerfen“ klicken.]
!sethookurl
$nomention
$if[$guildID!=]
$onlyPerms[manageserver;Sie benötigen Berechtigungen zur Serververwaltung, um diesen Befehl auszuführen]
$argsCheck[>1;> Bitte geben Sie einen gültigen Webhook-Link an.]
$onlyIfMessageContains[$message;https://discord.com/api/webhooks/;Es tut mir leid, aber Ihre Nachricht „$message“ ist kein gültiger Webhook-Link.]
$setServerVar[hook_url;$message]
$title[Erfolgreich]
$description[Sie haben die neue Webhook-URL erfolgreich festgelegt
⚠️・Bitte beachten Sie, dass diese URL nun auch für alle zukünftigen Nachrichten verwendet wird,
Wenn Sie Nachrichten über einen anderen Webhook senden möchten, müssen Sie diesen zuerst ändern]
$color[$getVar[color]]
$footer[$getVar[footer]]
$endif
$onInteraction[modal]
$nomention
$newModal[hook-setup;Weebhook Einrichtung]
$addTextInput[hook-title;paragraph;Title;1;25;false; ;Geben sie hier die Überschrift an]
$addTextInput[hook-desc;paragraph;📋・Description;10;1500;true; ;Geben Sie hier den Inhalt an]
$addTextInput[hook-footer;paragraph;🦶・Footer;1;30;false; ;Fußzeile hier eingeben]
$addTextInput[hook-image;paragraph;🖼️・Image;1;500;true; ;Geben Sie hier einen Link zu einem Bild ein]