Tutorials_for_BDFD

warn system en

Oct 27th, 2022
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. All the codes are made with BDScript
  2.  
  3. Variables :
  4. prefix = your bots prefix
  5.  
  6. log = 0
  7.  
  8. ___Code 1___
  9. Trigger: (prefix)warn
  10.  
  11. $nomention
  12. $onlyIf[$guildID!=;This command cannot be executed in DM.]
  13. $onlyPerms[Moderatemembers;❌**・You are missing the following permissions :**
  14. `× Moderatemembers`.]
  15. $argsCheck[>1;Please mention someone to warn! Usage: `($getVar[prefix])warn (@user) (optional reason)`]
  16. $title[⚠️ Warning!]
  17. $color[FF0026]
  18. $description[You have been warned.
  19.  
  20. Reason: $replaceText[$message;$message[1];]
  21. Warned by: $username#$discriminator[]
  22. ]
  23. $footer[If you think this was a mistake or an invalid warn, please contact a member of staff.]
  24. $dm[]
  25. $sendEmbedMessage[$getServerVar[log];;Warning Log!;;User warned: $username[$mentioned[1]]#$discriminator[]
  26. User ID: $mentioned[1]
  27.  
  28. Reason: $replaceText[$message;$message[1];]
  29. Warned by: $username#$discriminator[];00FFFF;;;;;$userAvatar[$botID];;yes;no]
  30.  
  31. $sendMessage[✅ The user has successfully been warned and logged!]
  32. $allowMention
  33. $thumbnail[$userAvatar[$botID]]
  34.  
  35. ___Code 2___
  36. Trigger: (prefix)setlog
  37.  
  38. $nomention
  39. $onlyPerms[manageserver;❌**・You are missing the following permissions :**
  40. `× manageserver`.]
  41. $setServerVar[log;$mentionedChannels[>]]
  42. $description[You have successfully set the log channel]
  43.  
Advertisement
Add Comment
Please, Sign In to add comment