ShadowsNemesis

Application system for bdfd

Feb 25th, 2024 (edited)
1,618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.80 KB | None | 0 0
  1. ********************
  2. Application Codes
  3. ********************
  4. Variable / Value
  5. applicationchannel /
  6. modlog /
  7. userapplication /
  8. staffrole /
  9.  
  10. ********************
  11. HOW TO USE:
  12. 1) all the variables should have blank values when made.
  13.  
  14. 2) first use the appset (code 3) to set the variables:
  15. examples:
  16. (prefix)appset logs #logchannel
  17.  
  18. (prefix)appset channel #applicationchannel
  19.  
  20. (prefix)appset roles @rolename
  21.  
  22. 3) then for your server create a role called "staff" if you do not already have one
  23.  
  24. ********************
  25. Code 1: (prefix)newapplication
  26.  
  27. $nomention
  28. $deletecommand
  29. $onlyIf[$getServerVar[applicationchannel]!=;Please have an admin set the application channel first]
  30. $onlyIf[$getServerVar[modlog]!=;Please have an admin set the mod logs channel first]
  31. $title[__**Staff Application**__]
  32. $description[<@$authorID>, Thank you for showing interest in joining the $serverName[$guildID] staff team!
  33.  
  34. Using the buttons below please answer all 8 questions to the best of your abilities.
  35.  
  36. Read all questions carefully, when there is a question that give you options only choose one if the options:
  37. example: are you available for at least 30m a day?
  38. yes or no
  39.  
  40. you replace the yes or no with only one choice.
  41.  
  42. any application that is not done properly will not be submitted.
  43.  
  44. Click Submit when you are finished]
  45. $addButton[no;staffq1-$authorID;Questions 1-4;Primary;no;]
  46. $addButton[no;staffq2-$authorID;Questions 5-8;Primary;no;]
  47. $addButton[no;staffsubmit-$authorID;Submit;success;no;]
  48. $addButton[no;delete-$authorID;Cancel Application;danger;no;]
  49. ***********************
  50. Code 2: $onInteraction
  51.  
  52. $onlyIf[$checkContains[$customID;staffq1-;staffq2-;staffsubmit-;staffa1-;staffa2-;staffapprove-;staffdecline-;staffrole-]==true;]
  53. $nomention
  54. $textSplit[$customID;-]
  55. $if[$splitText[2]!=$authorID]
  56. $ephemeral
  57. $removeButtons
  58. $description[This is not your application]
  59. $elseif[$splitText[2]==$authorID]
  60. $if[$customID==staffq1-$authorID]
  61. $newModal[staffa1-$authorID;Questions1-4]
  62. $addTextInput[answer1;short;Timezone;;;yes;;]
  63. $addTextInput[answer2;short;Are you over 18?;;;yes;yes or no;]
  64. $addTextInput[answer3;short;Have you been staff/moderator/admin before?;;;yes;staff or moderator or admin or no;]
  65. $addTextInput[answer4;short;Are you availble for 30m a day?;;;yes;yes or no;]
  66. $endif
  67. $if[$customID==staffq2-$authorID]
  68. $newModal[staffa2-$authorID;Questions 5-9]
  69. $addTextInput[answer5;short;Are you comfortable settling disputes?;;;yes;yes or no;]
  70. $addTextInput[answer6;paragraph;How long have you been on the server?;;;yes;;]
  71. $addTextInput[answer7;paragraph;What position would you like and why;;2000;yes;;]
  72. $addTextInput[answer8;paragraph;Tell us about yourself;;2000;yes;;]
  73. $addTextInput[answer9;paragraph;what can you contribute to the server?;;2000;yes;;]
  74. $endif
  75. $if[$customID==staffa1-$authorID]
  76. $textSplit[$getUserVar[userapplication;$authorID];|]
  77. $if[$checkContains[$toLowercase[$input[answer3]];staff]==true] $var[answer3;staff] $elseif[$checkContains[$toLowercase[$input[answer3]];mod]==true] $var[answer3;moderator] $elseif[$checkContains[$toLowercase[$input[answer3]];admin]==true] $var[answer3;admin] $elseif[$checkContains[$toLowercase[$input[answer3]];mod;staff;admin]!=true] $var[answer3;no] $endif
  78. $setUserVar[userapplication;$input[answer1]|$input[answer2]|$var[answer3]|$input[answer4]|$splitText[5]|$splitText[6]|$splitText[7]|$splitText[8]|$splitText[9];$authorID]
  79. $endif
  80. $if[$customID==staffa2-$authorID]
  81. $textSplit[$getUserVar[userapplication;$authorID];|]
  82. $setUserVar[userapplication;$splitText[1]|$splitText[2]|$splitText[3]|$splitText[4]|$input[answer5]|$input[answer6]|$input[answer7]|$input[answer8]|$input[answer9];$authorID]
  83. $endif
  84. $endif
  85. $if[$customID==staffsubmit-$authorID]
  86. $textSplit[$getUserVar[userapplication;$authorID];|]
  87. $removeComponent[staffq1-$authorID]
  88. $removeComponent[staffq2-$authorID]
  89. $removeComponent[staffsubmit-$authorID]
  90. $removeComponent[delete-$authorID]
  91. $description[Application has been submitted, thank you for your interest in joining our team.
  92.  
  93. Once reviewed you will be notified of our decision.]
  94. $color[1700fb]
  95. $async[1]
  96. $replyIn[1]
  97. $textSplit[$getUserVar[userapplication;$authorID];|]
  98. $var[id;$sendEmbedMessage[$getServerVar[applicationchannel];;__**New Application**__;;__TimeZone:__ $splitText[1]
  99. __Over 18:__ $splitText[2]
  100. __Previously Been staff/Mod/Admin:__ $splitText[3]
  101. __Available 30m a day:__ $splitText[4]
  102. __Comfortable settling disputes:__ $splitText[5]
  103. __How long in server:__ $splitText[6]
  104. __Position and Why:__
  105. $splitText[7]
  106.  
  107. __Information about applicant:__
  108. $splitText[8]
  109.  
  110. __contributions:__
  111. $splitText[9]
  112.  
  113. The Approve or Deny Buttons are for Admins only.;1700fb;;;;;$authorAvatar;;yes;yes]]
  114. $useChannel[$getServerVar[applicationchannel]]
  115. $addButton[no;staffapprove-$authorID;Approve;success;no;;$var[id]]
  116. $addButton[no;staffdecline-$authorID;Decline;danger;no;;$var[id]]
  117. $endasync
  118. $endif
  119. $if[$checkContains[$customID;staffapprove-]==true]
  120. $if[$isAdmin[$authorID]!=true]
  121. $sendMessage[This is a admin button only.]
  122. $else
  123. $textSplit[$customID;-]
  124. $var[id;$splitText[2]]
  125.  
  126. $description[Which Staff role did they apply for?]
  127. $textSplit[$getServerVar[staffroles];|]
  128. $removeComponent[staffapprove-$var[id]]
  129. $removeComponent[staffdecline-$var[id]]
  130. $addButton[no;staffrole-$splitText[1]-$var[id];$roleName[$splitText[1]];primary;no;]
  131. $if[$splitText[2]!=]
  132. $addButton[no;staffrole-$splitText[2]-$var[id];$roleName[$splitText[2]];primary;no;]
  133. $endif
  134. $if[$splitText[3]!=]
  135. $addButton[no;staffrole-$splitText[3]-$var[id];$roleName[$splitText[3]];primary;no;]
  136. $endif
  137. $if[$splitText[4]!=]
  138. $addButton[no;staffrole-$splitText[4]-$var[id];$roleName[$splitText[4]];primary;no;]
  139. $endif
  140. $if[$splitText[5]!=]
  141. $addButton[no;staffrole-$splitText[5]-$var[id];$roleName[$splitText[5]];primary;no;]
  142. $endif
  143. $if[$splitText[6]!=]
  144. $addButton[yes;staffrole-$splitText[6]-$var[id];$roleName[$splitText[6]];primary;no;]
  145. $endif
  146. $if[$splitText[7]!=]
  147. $addButton[no;staffrole-$splitText[7]-$var[id];$roleName[$splitText[7]];primary;no;]
  148. $endif
  149. $if[$splitText[8]!=]
  150. $addButton[no;staffrole-$splitText[8]-$var[id];$roleName[$splitText[8]];primary;no;]
  151. $endif
  152. $if[$splitText[9]!=]
  153. $addButton[no;staffrole-$splitText[9]-$var[id];$roleName[$splitText[9]];primary;no;]
  154. $endif
  155. $if[$splitText[10]!=]
  156. $addButton[no;staffrole-$splitText[10]-$var[id];$roleName[$splitText[10]];primary;no;]
  157. $endif
  158. $async[approve]
  159. $replyIn[1]
  160. $dm[$var[id]]
  161. $sendEmbedMessage[$dmChannelID[$var[id]];;__**Staff Application**__;;<@$var[id]> it is with great pleasure that we inform you that your staff application to $serverName[$guildID] has been approved!
  162.  
  163. Welcome to the staff team!!;1700fb;;;;;$serverIcon[$guildID];;yes;no]
  164. $endasync
  165. $if[$getServerVar[modlog]!=]
  166. $async[promote]
  167. $replyIn[2]
  168. $sendEmbedMessage[$getServerVar[modlog];;__**New Staff Member**__;;Everyone please give a round of applause to the newest member of $serverName[$guildID]’s staff team <@$var[id]> !!!!;1700fb;;;;;$serverIcon[$guildID];;yes;no]
  169. $endasync
  170. $endif
  171. $endif
  172. $endif
  173. $if[$checkContains[$customID;staffdecline-]==true]
  174. $if[$isAdmin[$authorID]!=true]
  175. $sendMessage[This is a admin button only.]
  176. $else
  177. $textSplit[$customID;-]
  178. $var[id;$splitText[2]]
  179.  
  180. $async[decline]
  181. $replyIn[1]
  182. $dm[$var[id]]
  183. $sendEmbedMessage[$dmChannelID[$var[id]];;__**Staff Application**__;;<@$var[id]> we are sorry to inform you that your staff application to $serverName[$guildID] has been declined!
  184.  
  185. Do not let this detour you from trying again however, one day in the future you may still yet be able to join our staff team!;1700fb;;;;;$serverIcon[$guildID];;yes;no]
  186. $endasync
  187. $endif
  188. $endif
  189. $if[$checkContains[$customID;staffrole-]==true]
  190. $textSplit[$customID;-]
  191. $removeButtons
  192. $roleGrant[$splitText[3];+$roleID[staff];+$splitText[2]]
  193. $sendEmbedMessage[$channelID;;__**Roles Granted**__;;The $roleName[$roleID[staff]] and $roleName[$splitText[2]] roles have been assigned to <@$splitText[3]> !!!!;1700fb;;;;;$serverIcon[$guildID];;yes;no]
  194. $endif
  195. **************
  196. Code 3: (prefix)appset
  197.  
  198. $onlyIf[$checkContains[$message[1];logs;channel;roles]==true;]
  199. $nomention
  200. $onlyAdmin[Admin only]
  201. $deletecommand
  202. $if[$message[1]==logs]
  203. $onlyIf[$mentionedChannels[1]!=;please mention a channel with the command]
  204. $setServerVar[modlog;$mentionedChannels[1]]
  205. $description[The mod log channel has been set to <#$mentionedChannels[1]>]
  206. $deleteIn[15]
  207. $endif
  208. $if[$message[1]==channel]
  209. $onlyIf[$mentionedChannels[1]!=;please mention a channel with the command]
  210. $setServerVar[applicationchannel;$mentionedChannels[1]]
  211. $description[The applications channel has been set to <#$mentionedChannels[1]>]
  212. $deleteIn[15]
  213. $endif
  214. $if[$message[1]==roles]
  215. $onlyIf[$mentionedRoles[1]!=;please mention a role with the command]
  216. $setServerVar[staffroles;$getServerVar[staffroles]$mentionedRoles[1]|]
  217. $description[<@&$mentionedRoles[1]> has been added as a staff role]
  218. $deleteIn[15]
  219. $endif
  220.  
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment