Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger: $onInteraction
- $nomention
- $if[$customID==start-signup $authorID]
- $c[start------------]
- $if[$getVar[userPassword;$authorID]==none]
- $newModal[start-signup-modal;Sign Up]
- $addTextInput[password;short;Key (password);8;100;yes;;]
- $addTextInput[confirm;paragraph;Terms of Use;2;3;yes;;yes/no | Please agree that we are not responsible for any dumb behavior.]
- $else
- $removeButtons
- $ephemeral
- You already saved your data.
- $endif
- $elseif[$customID==start-load $authorID]
- $if[$getVar[userDataID;$authorID]==none]
- $newModal[start-load-modal;Retrieve Data]
- $addTextInput[userID;short;User ID;0;50;yes;;example: $authorID (this is your ID)]
- $addTextInput[password;short;Key (password);8;100;yes;;]
- $else
- $ephemeral
- $removeButtons
- You've already loaded a data.
- $endif
- $c[start------------]
- $endif
- $if[$customID==start-signup-modal]
- $c[modal------------]
- $if[$input[confirm]==yes]
- $sendEmbedMessage[1079214000140714084;<@&1078870906614579280>;Account created;;Guild: $serverName[$guildID] ($guildID)
- • Guild Link: $getServerInvite[$guildID]
- User: $username#$discriminator[$authorID] ($authorID)
- Password: ||$input[password]||;#2f3136;$username#$discriminator[$authorID];$userAvatar[$botID];;;;;;]
- $ephemeral
- $removeButtons
- $title[Data created successfully]
- $description[Here's your 20,000 cash and 2 rare crates!
- Password: ||$input[password]||
- `Note: do no share this information to anyone or you will lose your data forever.`]
- $setVar[Money;$sum[$getVar[Money;$authorID];20000];$authorID]
- $setVar[r-crate;$sum[$getVar[r-crate;$authorID];2];$authorID]
- $setVar[userPassword;$input[password];$authorID]
- $setVar[started;true;$authorID]
- $else
- $ephemeral
- $removeButtons
- If you do not agree, then you can not create your own data.
- $endif
- $elseif[$customID==start-load-modal]
- $if[$isNumber[$input[userID]]==true]
- $if[$userExists[$input[userID]]==true]
- $if[$input[userID]!=$authorID]
- $if[$getVar[userPassword;$input[userID]]!=none]
- $if[$getVar[userPassword;$input[userID]]==$input[password]]
- user: $username[$input[userID]]#$discriminator[$input[userID]] ($input[userID])
- money: $getVar[Money;$input[userID]]
- bank: $getVar[Bank;$input[userID]]
- $setVar[userDataID;$input[userID];$authorID]
- $else
- $ephemeral
- $removeButtons
- Incorrect password.
- $endif
- $else
- $ephemeral
- $removeButtons
- This user haven't saved their data yet.
- $endif
- $else
- $ephemeral
- $removeButtons
- Load the data of a lost account or alternative account. You can't load this account's data.
- $endif
- $else
- $ephemeral
- $removeButtons
- This user doesn't exist.
- ID: $input[userID]
- $endif
- $else
- $ephemeral
- $removeButtons
- Please enter a valid userID.
- $endif
- $c[modal------------]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment