AlferZep

code

Feb 26th, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. trigger: $onInteraction
  2.  
  3. $nomention
  4.  
  5. $if[$customID==start-signup $authorID]
  6. $c[start------------]
  7.  
  8. $if[$getVar[userPassword;$authorID]==none]
  9. $newModal[start-signup-modal;Sign Up]
  10. $addTextInput[password;short;Key (password);8;100;yes;;]
  11. $addTextInput[confirm;paragraph;Terms of Use;2;3;yes;;yes/no | Please agree that we are not responsible for any dumb behavior.]
  12. $else
  13. $removeButtons
  14. $ephemeral
  15. You already saved your data.
  16. $endif
  17.  
  18. $elseif[$customID==start-load $authorID]
  19.  
  20. $if[$getVar[userDataID;$authorID]==none]
  21. $newModal[start-load-modal;Retrieve Data]
  22. $addTextInput[userID;short;User ID;0;50;yes;;example: $authorID (this is your ID)]
  23. $addTextInput[password;short;Key (password);8;100;yes;;]
  24. $else
  25. $ephemeral
  26. $removeButtons
  27. You've already loaded a data.
  28. $endif
  29.  
  30. $c[start------------]
  31. $endif
  32.  
  33. $if[$customID==start-signup-modal]
  34. $c[modal------------]
  35.  
  36. $if[$input[confirm]==yes]
  37. $sendEmbedMessage[1079214000140714084;<@&1078870906614579280>;Account created;;Guild: $serverName[$guildID] ($guildID)
  38. • Guild Link: $getServerInvite[$guildID]
  39. User: $username#$discriminator[$authorID] ($authorID)
  40. Password: ||$input[password]||;#2f3136;$username#$discriminator[$authorID];$userAvatar[$botID];;;;;;]
  41.  
  42. $ephemeral
  43. $removeButtons
  44. $title[Data created successfully]
  45. $description[Here's your 20,000 cash and 2 rare crates!
  46.  
  47. Password: ||$input[password]||
  48. `Note: do no share this information to anyone or you will lose your data forever.`]
  49.  
  50. $setVar[Money;$sum[$getVar[Money;$authorID];20000];$authorID]
  51. $setVar[r-crate;$sum[$getVar[r-crate;$authorID];2];$authorID]
  52. $setVar[userPassword;$input[password];$authorID]
  53. $setVar[started;true;$authorID]
  54. $else
  55. $ephemeral
  56. $removeButtons
  57. If you do not agree, then you can not create your own data.
  58. $endif
  59.  
  60. $elseif[$customID==start-load-modal]
  61.  
  62. $if[$isNumber[$input[userID]]==true]
  63. $if[$userExists[$input[userID]]==true]
  64. $if[$input[userID]!=$authorID]
  65. $if[$getVar[userPassword;$input[userID]]!=none]
  66. $if[$getVar[userPassword;$input[userID]]==$input[password]]
  67. user: $username[$input[userID]]#$discriminator[$input[userID]] ($input[userID])
  68. money: $getVar[Money;$input[userID]]
  69. bank: $getVar[Bank;$input[userID]]
  70. $setVar[userDataID;$input[userID];$authorID]
  71. $else
  72. $ephemeral
  73. $removeButtons
  74. Incorrect password.
  75. $endif
  76. $else
  77. $ephemeral
  78. $removeButtons
  79. This user haven't saved their data yet.
  80. $endif
  81. $else
  82. $ephemeral
  83. $removeButtons
  84. Load the data of a lost account or alternative account. You can't load this account's data.
  85. $endif
  86. $else
  87. $ephemeral
  88. $removeButtons
  89. This user doesn't exist.
  90. ID: $input[userID]
  91. $endif
  92. $else
  93. $ephemeral
  94. $removeButtons
  95. Please enter a valid userID.
  96. $endif
  97.  
  98. $c[modal------------]
  99. $endif
  100.  
  101.  
  102.  
Advertisement
Add Comment
Please, Sign In to add comment