From 9d2e7b26ad067fd13fb6862eb48a6b86a5bb8afd Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 2 Mar 2025 01:04:07 -0500 Subject: Starting AleeBot 4.0! --- commands/ban.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 commands/ban.js (limited to 'commands/ban.js') diff --git a/commands/ban.js b/commands/ban.js deleted file mode 100644 index b734be5..0000000 --- a/commands/ban.js +++ /dev/null @@ -1,45 +0,0 @@ -/** ************************************** - * - * Ban: Command for AleeBot - * Copyright (C) 2017-2021 Alee Productions - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - * *************************************/ -module.exports.run = async (client, message, args) => { - const Discord = require('discord.js'); - const mreason = args.join(' ').slice(22); - if (!message.member.permissions.has('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to ban people.'); - if (!message.guild.members.cache.get(client.user.id).permissions.has('BAN_MEMBERS')) return message.reply('I don\'t have permission to ban members.'); - const member = message.mentions.members.first(); - if (!member) return message.reply('Please mention a member first.'); - await member.ban({ reason: `Banned by ${message.author.tag} for ${mreason}.`}); - const banEmbed = new Discord.MessageEmbed() - .setTitle('User Banned!') - .setColor('#1fd619') - .addField('**User:**', `${member.user.tag}`) - if (mreason) return banEmbed.addField('**Reason:**', `\`\`\`${mreason}\`\`\``); - await message.channel.send({embeds: [banEmbed]}); -}; - -exports.conf = { - aliases: [], - guildOnly: false, -}; -exports.help = { - name: 'ban', - description: 'Bans a member', - usage: 'ban [user] [reason]', - category: '- Moderation Commands', -}; -- cgit v1.2.3