ShadowsNemesis

BDFD snipe + level system + message logger + rank card + level enabler + anti mass ping/badwords

Apr 24th, 2022 (edited)
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.90 KB | None | 0 0
  1. =========================
  2. BDFD multiple in one non premium codes
  3. - this is designed for multiple codes that are non premium requiring the a-Z triggers
  4. =========================
  5. Code 1: BDSCRIPT2
  6.  
  7. Premium Trigger: $alwaysReply
  8. Non premium Trigger - a-Z triggers
  9. ********************
  10. Variable: socialxp
  11. Value: 0
  12.  
  13. Variable: socialreq
  14. Value: 500
  15.  
  16. Variable: sociallevel
  17. Value: 0
  18.  
  19. Variable: msgxp
  20. Value: you set this value
  21.  
  22. Variable: levelsystem
  23. Value: off
  24.  
  25. Variable: badwords
  26. Value: all bad words you want separated by ;
  27.  
  28. Variable: logs
  29. Value:
  30.  
  31. Variable: messages
  32. Value:
  33.  
  34. Variable: track
  35. Value: on
  36.  
  37. Variable: globalchannels
  38. Value:
  39.  
  40. Variable: servernames
  41. Value:
  42.  
  43. Variable: serverIDs
  44. Value:
  45.  
  46. Variable: botcreator
  47. Value: your userID
  48.  
  49. Variable: ticket
  50. Value: none
  51.  
  52. Variable: mentioned
  53. Value:
  54.  
  55. Variable: transcript
  56. Value:
  57.  
  58.  
  59. ****+*****************
  60. $embedSuppressErrors[Error;there is an issue with the messages variable. please reset it;FF0000;;;]
  61. $onlyIf[$guildID!=;]
  62. $enabled[$getServerVar[levelsystem];]
  63. $varExistError[socialxp;please create a Var: socialxp with the value: 0]
  64. $varExistError[msgxp;please create a Var: msgxp with the value you want gained per message]
  65. $varExistError[sociallevel;please create a Var: sociallevel with the value: 0]
  66. $varExistError[socialreq;please create a Var: sociallevel with the value: 500]
  67. $nomention
  68. $allowMention
  69.  
  70. $if[$checkContains[$getVar[servernames];$serverName[$guildID]]!=true]
  71. $if[$checkContains[$getVar[serverIDs];$guildID]!=true]
  72. $setVar[servernames;$getVar[servernames]$serverName[$guildID]+]
  73. $setVar[serverIDs;$getVar[serverIDs]$guildID+]
  74. $sendMessage[Thank you for adding me, $username[$botID] to your server! I have created a bot Updates channel so that my owner can send you bot updates. You can change this channels permissions but please do not delete it, my prefix is !]
  75. $if[$serverChannelExists[$channelID[updates]]!=true]
  76. $createChannel[updates;text]
  77. $endif
  78. $replyIn[4]
  79. $dm[$getVar[botcreator]]
  80. $author[GuildID ^]
  81. $title[__**New Server Addition**__]
  82. $description[I have just been added to __$serverName[$guildID]__
  83.  
  84. __Server Info__
  85. Server ID: $guildID
  86.  
  87. Owner: $username[$serverOwner[$guildID]]#$discriminator[$serverOwner[$guildID]]
  88. Owner ID: $serverOwner[$guildID]
  89. Created: $creationDate[$guildID]
  90. Total Members: $membersCount
  91. Total Roles: $roleCount
  92. Total Channels: $channelCount
  93. Channel Joined: $channelName[$channelID]
  94. Bot Update Channel: $findChannel[updates]]
  95. $guildID
  96. $addButton[no;leaveserver;Remove from Server;danger;no;]
  97. $async[0]
  98. $replyIn[7]
  99. $if[$checkContains[$getVar[globalchannels];$findChannel[updates]]!=true]
  100. $setVar[globalchannels;$getVar[globalchannels]$findChannel[updates]|]
  101. $setServerVar[globalchannels;$findChannel[updates]]
  102. $endif
  103. $endasync
  104. $elseif[$checkContains[$getVar[serverIDs];$guildID]==true]
  105. $setVar[servernames;$serverNames[-1;+]]
  106. $endif
  107. $elseif[$checkContains[$getVar[servernames];$serverName[$guildID]]==true]
  108.  
  109. $setUserVar[socialxp;$sum[$getUserVar[socialxp;$authorID];$getServerVar[msgxp]];$authorID]
  110. $if[$getServerVar[logs]!=]
  111. $sendEmbedMessage[$getServerVar[logs];;__**Message Log**__;https://discord.com/channels/$guildID/$channelID/$messageID;**Username:** $username
  112. **ID:** $authorID
  113. **Channel:** <#$channelID>
  114. **When:** <t:$getTimeStamp:F>
  115. **Message:**
  116. ```$message```;1700fb;;;;;$authorAvatar;;yes;no]
  117. $endif
  118.  
  119. $if[$getServerVar[track]==on]
  120. $if[$charCount[$getServerVar[messages]]<4000]
  121. $onlyIf[$checkContains[$message[1];!snipe;!]!=true;]
  122.  
  123. $setServerVar[messages;$getServerVar[messages]/<@$authorID>-$replaceText[$message;$;{%DOL%};-1]-$channelID-$getTimestamp]
  124. $elseif[$charCount[$getServerVar[messages]]>=4000]
  125. $onlyIf[$checkContains[$message[1];!snipe;!]!=true;]
  126. $setServerVar[messages;/<@$authorID>-$replaceText[$message;$;{%DOL%};-1]-$channelID-$getTimestamp]
  127. $endif
  128. $endif
  129.  
  130. $if[$getUserVar[socialxp;$authorID]>=$getUserVar[socialreq;$authorID]]
  131.  
  132. $setUserVar[socialreq;$sum[$getUserVar[socialreq;$authorID];500];$authorID]
  133. $setUserVar[sociallevel;$sum[$getUserVar[sociallevel;$authorID];1];$authorID]
  134. $sendEmbedMessage[$channelID;;Level Up!;;Congrats <@$authorID>, you have gone up a level to $sum[$getUserVar[sociallevel];1]! To reach the next level you need to reach $sum[$getUserVar[socialreq];500] experience.;1700fb;;;;;$authorAvatar;;yes;no]
  135. $setUserVar[socialxp;0;$authorID]
  136. $endif
  137.  
  138. $if[$checkContains[$message;$getVar[badwords]]==true]
  139. $deletecommand
  140. $nomention
  141. $allowMention
  142. >>> <@$authorID> we do not use words or phrases like that here! Do **NOT** say that again! Thank you
  143. $deleteIn[15s]
  144.  
  145.  $endif
  146.  $textSplit[$message;<@]
  147.  $if[$getTextSplitLength>=3]
  148.  $deletecommand
  149.  >>> <@$authorID> No MASS pinging people!!
  150.  Thank you
  151.  $deleteIn[15s]
  152.  $endif
  153. $endif
  154.  
  155. $if[$getServerVar[mentioned]!=]
  156.  $if[$getUserVar[ticket;$getServerVar[mentioned]]==none]
  157. $onlyIf[$checkContains[$channelName[$mentionedChannels[1;yes]];ticket]==true;]
  158. $setUserVar[ticket;$channelName[$mentionedChannels[1;yes]];$getServerVar[mentioned]]
  159. $endif
  160. $if[$getUserVar[ticket;$getServerVar[mentioned]]!=none]
  161. $onlyIf[$getUserVar[ticket;$getServerVar[mentioned]]!=none;]
  162. $onlyForChannels[$findChannel[$getUserVar[ticket;$getServerVar[mentioned]]];]
  163. $setUserVar[transcript;$getUserVar[transcript;$getServerVar[mentioned]]$username{$message{$hour:$minute;$getServerVar[mentioned]]
  164.  $nomention
  165.  $allowMention
  166.  $endif
  167. $endif
  168. ==========================β€’
  169. Code 2: Unstable
  170. Trigger: (prefix)rank
  171. **************************
  172. Variable: bgrank
  173. Value:
  174.  
  175. **************************
  176.  
  177. $image[https://vacefron.nl/api/rankcard?username=$replaceText[$nickname[$mentioned[1;yes]]; ;_;-1]&level=$getUserVar[sociallevel;$mentioned[1;yes]]&rank=$getUserVar[sociallevel;$mentioned[1;yes]]&currentxp=$getUserVar[socialxp;$mentioned[1;yes]]&nextlevelxp=$getUserVar[socialreq;$mentioned[1;yes]]&previouslevelxp=0&avatar=$userAvatar[$mentioned[1;yes]]&custombg=$getUserVar[bgrank;$mentioned[1;yes]]&circleavatar=true&xpcolor=FFC900&isboosting=false]
  178.  $nomention
  179.  $deletecommand
  180. ==================================
  181. Code 3: BDScript2
  182.  
  183. Trigger: (prefix)levelsystem
  184. *********************************
  185. Variable: levelsystem
  186. Value: no
  187.  
  188. ********************************
  189. $embedSuppressErrors[;;FF0000;;;]
  190.  $nomention
  191.  $deletecommand
  192.  $if[$message[1]==enable]
  193.  $onlyIf[$getServerVar[levelsystem]==no;Leveling is already enabled]
  194.  $setServerVar[levelsystem;yes]
  195.  $description[Leveling is enabled]
  196.  $endif
  197.  
  198.  $if[$message[1]==disable]
  199.  $onlyIf[$getServerVar[levelsystem]==yes;Leveling is already disabled]
  200.  $setServerVar[levelsystem;no]
  201.  $description[Leveling is disabled]
  202.  $endif
  203. ==================================
  204. Code 4: BDSCRIPT2
  205.  
  206. Trigger: (prefix)setlogchannel
  207. ******************************
  208. Variable: logs
  209. Value:
  210.  
  211. **********************************
  212. $onlyIf[$mentionedChannels[1]!=;You must mention which channel]
  213. $setServerVar[logs;$mentionedChannels[1]]
  214. $description[Loggiing channel set to <#$mentionedChannels[1]>]
  215. $nomention
  216. $allowMenion
  217. $deletecommand
  218. $deleteIn[15]
  219. ================================
  220. Code 5: BDSCRIPT2
  221. trigger: $onMessageDelete[$getServerVar[welcomechannel]]
  222. ******************************
  223.  
  224. Variable: snipe
  225. Value:
  226.  
  227. Variable: logs
  228. Value: your log channel ID
  229.  
  230. Variable: welcomechannel
  231. Value: any channelID
  232.  
  233. *******************************
  234. $disableSpecialEscaping
  235. $onlyIf[$checkContains[$message[1];!]!=true;]
  236. $setServerVar[track;off]
  237. $nomention
  238.  
  239. $textSplit[$getServerVar[messages];/]
  240.  
  241. $setServerVar[snipe;$replaceText[$splitText[>];$;{%DOL%};-1]]
  242. $async[one]
  243. $replyIn[1]
  244. $if[$getServerVar[logs]!=]
  245. $textSplit[$getServerVar[snipe];-]
  246. $sendEmbedMessage[$getServerVar[logs];;__**Message Deleted**__;;__From:__ $splitText[1]
  247.  
  248. __Message:__
  249. $splitText[2]
  250.  
  251.  __In Channel:__ <#$splitText[3]>
  252.  
  253.  __Sent at:__ <t:$splitText[4]:F>;FF0000;;;;;;;yes;no] $else $endif
  254. $endasync
  255. $async[two]
  256. $replyIn[2s]
  257. $setServerVar[track;on]
  258. $endasync
  259. ============================
  260. Code 6: BDScript2
  261. trigger: (prefix)snipe
  262.  
  263. ***************************
  264. $disableSpecialEscaping
  265.  
  266. $setServerVar[track;off]
  267.  
  268. $nomention
  269. $allowMention
  270. $footer[Sniped by: $nickname]
  271. $addTimestamp
  272. $textSplit[$getServerVar[snipe];-]
  273. $description[__**Deleted message**__
  274.  
  275. __From:__ $splitText[1]
  276.  
  277. __Message:__
  278. $splitText[2]
  279.  
  280.  __In Channel:__ <#$splitText[3]>
  281.  
  282. __Sent at:__ <t:$splitText[4]:F>]
  283. $thumbnail[$userAvatar[$replaceText[$replaceText[$splitText[1];<@;;1];>;;1]]]
  284. $color[FF0000]
  285.  
  286.  
  287. $async[one]
  288. $nomention
  289. $replyIn[1s]
  290. $setServerVar[track;on]
  291. $endasync
  292. ============================
  293. Code 7: BDScript2
  294. trigger: (prefix)resetsnipe
  295.  
  296. ***************************
  297. $c[only need to use this code if you are getting a error message about your variable being too long]
  298. $nomention
  299. $setServerVar[messages;]
  300. $description[messages Var reset]
  301. $deletecommand
  302. $deleteIn[15]
  303. ============================
  304. Code 8: BDScript2
  305. trigger: (prefix)adjustxp
  306.  
  307. **************************
  308. Variable: xp
  309. Value: 0
  310. ***************************
  311. $c[only need to use this code if you are adjusting someone’s xp manually]
  312. $c[replace the xp variable with whatever you have for yours]
  313. $nomention
  314. $if[$isNumber[$message[1]]==true]
  315. $onlyIf[$isNumber[$message[1]]==true;usage (prefix)adjustxp **new xp amount** username/ID/mention]
  316.  
  317. $onlyIf[$userExists[$findUser[$message[2];no]]==true;this user does not exist]
  318. $onlyAdmin[only for admins]
  319. $setUserVar[xp;$message[1];$findUser[$message[2];no]]
  320. $description[<@$findUser[$message[2];no]> xp was reset to $message[1]]
  321. $elseif[$isNumber[$message[1]]!=true]
  322. $onlyIf[$message[1]==add;usage (prefix)adjustxp add xp amount username/ID/mention]
  323. $onlyIf[$isNumber[$message[2]]==true;usage (prefix)adjustxp add **xp amount** username/ID/mention]
  324.  
  325. $onlyIf[$userExists[$findUser[$message[3];no]]==true;this user does not exist]
  326. $onlyAdmin[only for admins]
  327. $setUserVar[xp;$sum[$getUserVar[xp;$findUser[$message[3];no]];$message[2]];$findUser[$message[3];no]]
  328. $description[<@$findUser[$message[3];no]> xp was increased by $message[2]]
  329. $endif
  330. $deletecommand
  331. $deleteIn[15]
  332. ============================
  333. Code 9: BDScript2
  334. trigger: $onInteraction
  335.  
  336. **************************
  337. $onlyIf[$checkContains[$customID;leaveserver;guild]==true;]
  338. $nomention
  339. $allowMention
  340.  
  341. $if[$customID==leaveserver]
  342. $newModal[guild;serverID]
  343. $addTextInput[server;short;serverID;1;20;yes;;serverID]
  344. $endif
  345. $if[$customID==guild]
  346. $setVar[servernames;$replaceText[$getVar[servernames];$serverName[$input[server]]+;;1]]
  347. $setVar[serverIDs;$replaceText[$getVar[serverIDs];$input[server]|;;1]]
  348. $if[$channelExists[$getServerVar[globalchannels;$input[server]]]==true]
  349. $channelSendMessage[$getServerVar[globalchannels;$input[server]];you seem to have done something to upset my creator!! tsk tsk... oh well my creator has called me back. Goodbye!]
  350. $setVar[globalchannels;$replaceText[$getVar[globalchannels];$getServerVar[globalchannels;$input[server]]|;;1]]
  351. $endif
  352. $removeButtons
  353. $botLeave[$input[server]]
  354. $endif
  355. ============================
  356. Code 10: BDScript2
  357. trigger: (prefix)botupdate
  358.  
  359. **************************
  360. $c[This will send embed updates about your bot when you use the command to the first 10 servers In your variable. To have is send more than 10 just keep adding the lines between async and endasync changing the async number and replyIn times with each one]
  361. $onlyIf[$getVar[botcreator]==$authorID;you are not <@$getVar[botcreator]>!!]
  362. $nomention
  363. $allowMention
  364. $deletecommand
  365. $var[1;$textSplit[$message;|] $splitText[1]]
  366. $var[2;$textSplit[$message;|] $splitText[2]]
  367. $var[a;1]
  368. $textSplit[$getVar[globalchannels];|]
  369.  
  370. $var[num;$getTextSplitLength]
  371.  
  372. $if[$var[num]!=0]
  373. $if[$channelExists[$splitText[$var[num]]]==true]
  374. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  375.  
  376. $endif
  377. $var[num;$sub[$var[num];1]]
  378.  
  379. $var[a;$sum[$var[a];1]]
  380. $endif
  381. $async[1]
  382. $if[$var[num]!=0]
  383. $replyIn[3]
  384. $if[$channelExists[$splitText[$var[num]]]==true]
  385. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  386. $endif
  387. $var[num;$sub[$var[num];1]]
  388.  
  389. $var[a;$sum[$var[a];1]]
  390. $endif
  391. $endasync
  392. $async[2]
  393. $if[$var[num]!=0]
  394. $replyIn[5]
  395. $if[$channelExists[$splitText[$var[num]]]==true]
  396. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  397. $endif
  398. $var[num;$sub[$var[num];1]]
  399.  
  400. $var[a;$sum[$var[a];1]]
  401. $endif
  402. $endasync
  403. $async[3]
  404. $if[$var[num]!=0]
  405. $replyIn[7]
  406. $if[$channelExists[$splitText[$var[num]]]==true]
  407. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  408. $endif
  409. $var[num;$sub[$var[num];1]]
  410.  
  411. $var[a;$sum[$var[a];1]]
  412. $endif
  413. $endasync
  414.  
  415. $async[4]
  416. $if[$var[num]!=0]
  417. $replyIn[9]
  418. $if[$channelExists[$splitText[$var[num]]]==true]
  419. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  420. $endif
  421. $var[num;$sub[$var[num];1]]
  422.  
  423. $var[a;$sum[$var[a];1]]
  424. $endif
  425. $endasync
  426.  
  427. $async[5]
  428. $if[$var[num]!=0]
  429. $replyIn[11]
  430. $if[$channelExists[$splitText[$var[num]]]==true]
  431. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  432. $endif
  433. $var[num;$sub[$var[num];1]]
  434.  
  435. $var[a;$sum[$var[a];1]]
  436. $endif
  437. $endasync
  438.  
  439. $async[6]
  440. $if[$var[num]!=0]
  441. $replyIn[13]
  442. $if[$channelExists[$splitText[$var[num]]]==true]
  443. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  444. $endif
  445. $var[num;$sub[$var[num];1]]
  446.  
  447. $var[a;$sum[$var[a];1]]
  448. $endif
  449. $endasync
  450.  
  451. $async[7]
  452. $if[$var[num]!=0]
  453. $replyIn[15]
  454. $if[$channelExists[$splitText[$var[num]]]==true]
  455. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  456. $endif
  457. $var[num;$sub[$var[num];1]]
  458.  
  459. $var[a;$sum[$var[a];1]]
  460. $endif
  461. $endasync
  462. $async[8]
  463. $if[$var[num]!=0]
  464. $replyIn[17]
  465. $if[$channelExists[$splitText[$var[num]]]==true]
  466. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  467. $endif
  468. $var[num;$sub[$var[num];1]]
  469.  
  470. $var[a;$sum[$var[a];1]]
  471. $endif
  472. $endasync
  473. $async[9]
  474. $if[$var[num]!=0]
  475. $replyIn[21]
  476. $if[$channelExists[$splitText[$var[num]]]==true]
  477. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  478. $endif
  479. $var[num;$sub[$var[num];1]]
  480.  
  481. $var[a;$sum[$var[a];1]]
  482. $endif
  483. $endasync
  484. $async[10]
  485. $if[$var[num]!=0]
  486. $replyIn[23]
  487. $if[$channelExists[$splitText[$var[num]]]==true]
  488. $sendEmbedMessage[$splitText[$var[num]];;$username[$authorID]:;;$var[1];$random[0;999999];;;GlobalChat from:  $serverName[$guildID];$serverIcon;$authorAvatar;$var[2];yes;no]
  489. $endif
  490. $var[num;$sub[$var[num];1]]
  491.  
  492. $var[a;$sum[$var[a];1]]
  493. $endif
  494. $endasync
  495.  
  496. ==========================
  497. Code 11: Bdscript2
  498. Trigger: (prefix)setticket
  499. ==========================
  500.  $title[**__Tickets__**]
  501. $description[if you have a comment concern or question and want to ask and get help from the first available staff member then click the button below]
  502. $nomention
  503. $addButton[no;ticket;Need Help;primary;no;]
  504. $deletecommand
  505. $onlyAdmin[sorry only admins]
  506.  
  507. ==========================
  508. Code 12: Bdscript2
  509. Trigger: $onInteraction[ticket]
  510. ==========================
  511.  $nomention
  512. $allowMention
  513. $newTicket[Staff Mail;;Welcome <@$authorID> to the staff mail.
  514. Please state the issue/question/concern you have and a staff member will claim this ticket as soon as they can.
  515. Also please do not @ping any staff thank you.
  516. πŸ“¨ = Staff Member to claim
  517. πŸ“ͺ = to close ticket
  518. πŸ“ = get transcript;Thank you <@$authorID> head to {channel};Error occurance]
  519. $setServerVar[mentioned;$authorID]
  520.  
  521. ==========================
  522. Code 14: Bdscript2
  523. Trigger: πŸ“
  524. ==========================
  525.  $dm[$authorID]
  526. __**Your Transcript**__
  527. $replaceText[$getUserVar[transcript;$authorID];{;
  528.  ;-1]
  529.  
  530. ==========================
  531. Code 15: Bdscript2
  532. Trigger: πŸ“¨
  533. ==========================
  534.  $nomention
  535. $allowMention
  536. $description[<@$authorID> has claimed this ticket to help with.]
  537. $onlyIf[$hasRole[$authorID;$findRole[staff role]]==true;only staff can claim tickets]
  538. $editButton[staffclaim;Claimed;primary;yes;]
  539.  
  540. ==========================
  541. Code 16: Bdscript2
  542. Trigger: πŸ“ͺ
  543. ==========================
  544.  
  545.  $closeTicket[error]
  546. $setUserVar[ticket;none;$getServerVar[mentioned]]
  547. $setUserVar[transcript;;$getServerVar[mentioned]]
  548.  
Advertisement
Add Comment
Please, Sign In to add comment