BDFD_Berk

Warn, CheckWarns, ClearWarns commands | Bot Designer For Discord

Oct 12th, 2020 (edited)
1,191
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BDFD Code share server: discord.gg/Ap2tdvP | You can share and get codes and APIs, and ask for codes! | BDFD Code share isn't a official BDFD server
  2. Also check this :) https://youtu.be/AIfy1oJ7PGw
  3.  
  4. ==========================================================
  5. Warn command:
  6. ==========================================================
  7.  
  8. $nomention
  9. $onlyIf[$isUserDMEnabled[$mentioned[1]]!=false; Warning Lodged For <@$mentioned[1]> There DM's Are Disabled]
  10. $dm[$mentioned[<]]
  11. $onlyIf[$isBot[$mentioned[1]]!=true;**You can't warn a bot!**]
  12. $argsCheck[>1;**Please mention someone**]
  13. $argsCheck[>2;**Please give a reason**]
  14. $setUserVar[warn;$sum[$getUserVar[warn;$mentioned[1]];1];$mentioned[1]]
  15. $onlyPerms[kick;]
  16. $title[Warn]
  17. $color[#FF0000]
  18. $description[You were warned in $serverName[$guildID] for: $noMentionMessage]
  19. $deletecommand
  20.  
  21. ==========================================================
  22. Check warns:
  23. ==========================================================
  24.  
  25. $nomention
  26. $deletecommand
  27. $onlyPerms[kick;You are required Kick Permission to run this command]
  28. $title[Warnings]
  29. $color[3ffc00]
  30. $description[<@$mentioned[1]> HAVE : $getUserVar[warn;$mentioned[1]] Warnings]
  31. $footer[$username!]
  32.  
  33. $argsCheck[>1;Please mention somebody to see warns.]
  34. $addReactions[☑]
  35.  
  36. ==========================================================
  37. Clear warns:
  38. ==========================================================
  39.  
  40. $nomention
  41. $onlyPerms[kick;You Cannot Do That**]
  42. $onlyIf[$mentioned[<]!=;Mention someone to clear their warns]
  43. $onlyIf[$getUserVar[warn;$mentioned[1;yes]]!=0;**The User Has No Warns To Be Cleared**]
  44.  
  45. $title[**WARN CLEARANCE**]
  46. $color[ff0000]
  47. $description[
  48. $username[$mentioned[<]] **Warn Has Been Removed By** $username[$authorID]
  49. **Total Warns Now**: $sub[$getUserVar[warn;$mentioned[1]];$noMentionMessage]]
  50.  
  51. $setUserVar[warn;$sub[$getUserVar[warn;$mentioned[1]];$noMentionMessage];$mentioned[<]]
  52. $deletecommand
  53. $deleteIn[15]
  54.  
  55. ==========================================================
  56. Don't forget to add the warn variable! watch the video
Add Comment
Please, Sign In to add comment