Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $onlyIf[$checkContains[$customID;appanswer;appsubmit;appcancel;apppostanswer;apppostcancel]==true;]
- $textSplit[$customID;-]
- $if[$splitText[1]==appanswer]
- $var[sid;$getVar[applying;$authorID]]
- $var[sn;$splitText[2]]
- $var[t;$splitText[3]]
- $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
- $var[app;$splitText[2]]
- $newModal[apppostanswer-$var[sn]-$var[t]-$messageID;Answer Question $var[sn]]
- $addTextInput[ans;paragraph;Write your Answer;1;495;yes;$getUserVar[app$var[app]$var[sn];$authorID;$var[sid]];]
- $endif
- $if[$splitText[1]==apppostanswer]
- $var[sid;$getVar[applying;$authorID]]
- $var[sn;$splitText[2]]
- $var[t;$splitText[3]]
- $var[msgid;$splitText[4]]
- $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
- $var[app;$splitText[2]]
- $setUserVar[app$var[app]$var[sn];$input[ans];$authorID;$var[sid]]
- $ephemeral
- ✅ Answer Submitted
- $editMessage[$channelID;$var[msgid];Application • $serverName[$var[sid]];$getServerVar[app$var[app]name;$var[sid]];```
- $getServerVar[app$var[app]desc;$var[sid]]```
- `[$var[sn]/$var[t]\]` **$getServerVar[app$var[app]$var[sn];$var[sid]]**
- >>> $replaceText[$replaceText[^$getUserVar[app$var[app]$var[sn];$authorID;$var[sid]]^;^^;*Not Answered*];^;];e67e22;Answer all of the questioins and Submit the application.]
- $endif
- $if[$splitText[1]==appcancel]
- $ephemeral
- $removeButtons
- $color[ff0000]
- $title[Confirm Cancel]
- $description[Are you sure you would like to cancel this application?]
- $addButton[yes;apppostcancel-yes-$messageID;Yes, Cancel;danger;no;]
- $addButton[no;apppostcancel-no;No nvm;secondary;no;]
- $endif
- $if[$splitText[1]==apppostcancel]
- $if[$splitText[2]==yes]
- $removeButtons
- $color[ff0000]
- $title[Application Canceled, but you can apply again if you like.]
- $removeButtons[$splitText[3]]
- $addButton[yes;apppostcancel;Application Canceled;danger;yes;;$splitText[3]]
- $addButton[no;https://discord.com/oauth2/authorize?client_id=$botID&scope=bot%20applications.commands&permissions=2146958847;Invite Bot;link;no;;$splitText[3]]
- $else
- $removeButtons
- $color[ff0000]
- $title[Application Resumed, you can continue answering.]
- $endif
- $endif
- $if[$splitText[1]==appsubmit]
- $var[sid;$getVar[applying;$authorID]]
- $var[sn;$splitText[2]]
- $var[t;$splitText[3]]
- $textSplit[$getUserVar[applying;$authorID;$var[sid]];•]
- $var[app;$splitText[2]]
- $var[n;1]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $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]]
- $if[$var[na]==]
- $var[text;$random[100000;999999]]
- $ephemeral
- $removeButtons
- $title[Type the following captcha to confirm.]
- $image[https://flamingtext.com/net-fu/proxy_form.cgi?script=crafts-logo&text=++++++$var[text]++++++&_loc=generate&imageoutput=true&backgroundRadio=1&backgroundColor=%23303136]
- $removeButtons
- <a:load:1020548976845525052> Write your answer below to confirm.
- $awaitFunc[submit]
- $setUserVar[applying;$var[text]•$var[app]•$messageID;$authorID;$var[sid]]
- $else
- $ephemeral
- $removeButtons
- $title[Oopse! You haven't answered all the questions]
- $description[You need to answer the question number ` $replaceText[$var[na];, ;;1] ` before submiting.]
- $color[ff0000]
- $endif
- $endif
Advertisement
Add Comment
Please, Sign In to add comment