Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- All the codes are made with BDScript
- Variables :
- prefix = your bots prefix
- log = 0
- ___Code 1___
- Trigger: (prefix)warn
- $nomention
- $onlyIf[$guildID!=;This command cannot be executed in DM.]
- $onlyPerms[Moderatemembers;❌**・You are missing the following permissions :**
- `× Moderatemembers`.]
- $argsCheck[>1;Please mention someone to warn! Usage: `($getVar[prefix])warn (@user) (optional reason)`]
- $title[⚠️ Warning!]
- $color[FF0026]
- $description[You have been warned.
- Reason: $replaceText[$message;$message[1];]
- Warned by: $username#$discriminator[]
- ]
- $footer[If you think this was a mistake or an invalid warn, please contact a member of staff.]
- $dm[]
- $sendEmbedMessage[$getServerVar[log];;Warning Log!;;User warned: $username[$mentioned[1]]#$discriminator[]
- User ID: $mentioned[1]
- Reason: $replaceText[$message;$message[1];]
- Warned by: $username#$discriminator[];00FFFF;;;;;$userAvatar[$botID];;yes;no]
- $sendMessage[✅ The user has successfully been warned and logged!]
- $allowMention
- $thumbnail[$userAvatar[$botID]]
- ___Code 2___
- Trigger: (prefix)setlog
- $nomention
- $onlyPerms[manageserver;❌**・You are missing the following permissions :**
- `× manageserver`.]
- $setServerVar[log;$mentionedChannels[>]]
- $description[You have successfully set the log channel]
Advertisement
Add Comment
Please, Sign In to add comment