Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.command({
- name:"ban",
- code: `
- $color[BLUE]
- $author[👌: Banned successfully]
- $addField[About:;
- Reason:
- > $replaceText[$replaceText[$checkCondition[$messageSlice[1]==];true;A reason wasn't provided.];false;$messageSlice[1]]
- Date:
- > $day $month $year
- ]
- $addField[User information;
- $userTag[$findUser[$message[1]]] - $findUser[$message[1]]]
- $addField[Moderator;
- $userTag - $authorID]
- $thumbnail[$userAvatar[$findUser[$message[1]]]]
- $ban[$findUser[$message[1]];$userTag: $replaceText[$replaceText[$checkCondition[$messageSlice[1]==];true;A reason wasn't provided.];false;$messageSlice[1]];7]
- $if[$memberExists[$findUser[$message[1]]]==true]
- $onlyIf[$rolePosition[$highestRole[$findUser[$message[1]]]]>$rolePosition[$highestRole]; To use this you need to have a higher rank than the mentioned user.]
- $onlyIf[$findUser[$message[1]]!=$authorID; You can't ban yourself (Or else, I couldn't find that user)]
- $onlyIf[$findUser[$message[1]]!=$clientID;I can't ban myself, how can it possible]
- $onlyIf[$findUser[$message[1]]!=$ownerID; I can't ban the owner of the server]
- $elseIf[$memberExists[$findUser[$message[1]]]==false]
- $onlyIf[$findUser[$message[1]]!=$authorID; You can't ban yourself (Or else, I couldn't find that user)]
- $endelseIf
- $endif
- $onlyIf[$isBanned[$findUser[$message[1]]]==false;This user has already been banned on this server]
- $onlyIf[$message!=;: Please specify the user you want to ban. Correct usage: \`$getServerVar[prefix]ban <@User> [Reason\\]\`]
- $onlyPerms[ban;To use this you require the \`BAN_MEMBERS\` permission]
- $onlyBotPerms[ban; I don't have enough perms to execute this command. Permissions missing :\`BAN_MEMBERS\`]`
- })
- bot.command({
- name: "unban",
- code: `$unban[$message[1];By $userTag[$authorID] Reason: $sliceMessage[1]]
- $username[$message[1]] **has been unbanned 👌**
- $onlyBotPerms[ban; I don't have ban perms]
- $argsCheck[>1; Please Provide User ID To Unban**]
- $onlyPerms[ban; You need ban permission]
- $suppressErrors[I can't find that user]`
- })
Advertisement
Add Comment
Please, Sign In to add comment