rajat_cj

Answer+sub+edit

Mar 24th, 2023 (edited)
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. $nomention
  2. $onlyIf[$checkContains[$customID;appanswer;appsubmit;appcancel;apppostanswer;apppostcancel]==true;]
  3.  
  4. $textSplit[$customID;-]
  5. $if[$splitText[1]==appanswer]
  6. $var[sid;$getVar[applying;$authorID]]
  7. $var[sn;$splitText[2]]
  8. $var[t;$splitText[3]]
  9. $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
  10. $var[app;$splitText[2]]
  11. $newModal[apppostanswer-$var[sn]-$var[t]-$messageID;Answer Question $var[sn]]
  12. $addTextInput[ans;paragraph;Write your Answer;1;495;yes;$getUserVar[app$var[app]$var[sn];$authorID;$var[sid]];]
  13. $endif
  14.  
  15. $if[$splitText[1]==apppostanswer]
  16. $var[sid;$getVar[applying;$authorID]]
  17. $var[sn;$splitText[2]]
  18. $var[t;$splitText[3]]
  19. $var[msgid;$splitText[4]]
  20.  
  21. $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
  22. $var[app;$splitText[2]]
  23.  
  24. $setUserVar[app$var[app]$var[sn];$input[ans];$authorID;$var[sid]]
  25. $ephemeral
  26. ✅ Answer Submitted
  27.  
  28. $editMessage[$channelID;$var[msgid];Application • $serverName[$var[sid]];$getServerVar[app$var[app]name;$var[sid]];```
  29. $getServerVar[app$var[app]desc;$var[sid]]```
  30. `[$var[sn]/$var[t]\]` **$getServerVar[app$var[app]$var[sn];$var[sid]]**
  31. >>> $replaceText[$replaceText[^$getUserVar[app$var[app]$var[sn];$authorID;$var[sid]]^;^^;*Not Answered*];^;];e67e22;Answer all of the questioins and Submit the application.]
  32.  
  33. $endif
  34.  
  35.  
  36.  
  37. $if[$splitText[1]==appcancel]
  38. $ephemeral
  39. $removeButtons
  40. $color[ff0000]
  41. $title[Confirm Cancel]
  42. $description[Are you sure you would like to cancel this application?]
  43. $addButton[yes;apppostcancel-yes-$messageID;Yes, Cancel;danger;no;]
  44. $addButton[no;apppostcancel-no;No nvm;secondary;no;]
  45. $endif
  46.  
  47.  
  48. $if[$splitText[1]==apppostcancel]
  49. $if[$splitText[2]==yes]
  50. $removeButtons
  51. $color[ff0000]
  52. $title[Application Canceled, but you can apply again if you like.]
  53. $removeButtons[$splitText[3]]
  54. $addButton[yes;apppostcancel;Application Canceled;danger;yes;;$splitText[3]]
  55. $addButton[no;https://discord.com/oauth2/authorize?client_id=$botID&scope=bot%20applications.commands&permissions=2146958847;Invite Bot;link;no;;$splitText[3]]
  56.  
  57. $else
  58. $removeButtons
  59. $color[ff0000]
  60. $title[Application Resumed, you can continue answering.]
  61. $endif
  62. $endif
  63.  
  64.  
  65. $if[$splitText[1]==appsubmit]
  66. $var[sid;$getVar[applying;$authorID]]
  67. $var[sn;$splitText[2]]
  68. $var[t;$splitText[3]]
  69. $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
  70. $var[app;$splitText[2]]
  71.  
  72. $var[n;1]
  73. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  74. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  75. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  76. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  77. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  78. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  79. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  80. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  81. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  82. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  83. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  84. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  85. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  86. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  87. $if[$getServerVar[app$var[app]$var[n];$var[sid]]!=] $if[$getUserVar[app$var[app]$var[n];$authorID;$var[sid]]==] $var[na;$var[na], $var[n]] $endif $endif $var[n;$sum[$var[n];1]]
  88.  
  89. $if[$var[na]==]
  90. $var[text;$random[100000;999999]]
  91. $ephemeral
  92. $removeButtons
  93. $title[Type the following captcha to confirm.]
  94. $image[https://flamingtext.com/net-fu/proxy_form.cgi?script=crafts-logo&text=++++++$var[text]++++++&_loc=generate&imageoutput=true&backgroundRadio=1&backgroundColor=%23303136]
  95. $removeButtons
  96. <a:load:1020548976845525052> Write your answer below to confirm.
  97. $awaitFunc[submit]
  98. $setUserVar[applying;$var[text]•$var[app]•$messageID;$authorID;$var[sid]]
  99. $else
  100. $ephemeral
  101. $removeButtons
  102. $title[Oopse! You haven't answered all the questions]
  103. $description[You need to answer the question number ` $replaceText[$var[na];, ;;1] ` before submiting.]
  104. $color[ff0000]
  105. $endif
  106. $endif
  107.  
  108.  
Advertisement
Add Comment
Please, Sign In to add comment