aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-23 22:25:50 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-23 22:25:50 -0500
commitda95d55a81686080143452bbdbd326efd5f40a32 (patch)
tree944271c6d94ff5cdd66479df343c0c71b85c2bb8
parentec4fd3ed863dffa27c2ddaf8d702f8aa27f174ff (diff)
downloadPokeBot-da95d55a81686080143452bbdbd326efd5f40a32.tar.gz
PokeBot-da95d55a81686080143452bbdbd326efd5f40a32.tar.bz2
PokeBot-da95d55a81686080143452bbdbd326efd5f40a32.zip
Ban done
-rw-r--r--commands/ban.js39
1 files changed, 19 insertions, 20 deletions
diff --git a/commands/ban.js b/commands/ban.js
index 6b489b5..0a90c5b 100644
--- a/commands/ban.js
+++ b/commands/ban.js
@@ -1,21 +1,20 @@
exports.run = (bot, msg, args) => {
- if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permssion to ban members');
- if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permssion to ban members');
- const member = msg.mentions.members.first();
- member.kick(msg.author.tag + ': ' + args.join(' ').slice(3 + member.user.id.length)).then(() => {
- msg.channel.send(`Alright, I banned **${member.user.tag}** for the reason **${args.join(' ').slice(3 + member.user.id.length)}**`);
- });
- };
-
- exports.conf = {
- aliases: [],
- guildOnly: true,
- };
-
- exports.help = {
- name: 'ban',
- description: 'Ban a user out of the server',
- usage: '@<User> <...reason>',
- category: 'Moderation',
- };
- \ No newline at end of file
+ if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permssion to ban members');
+ if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permssion to ban members');
+ const member = msg.mentions.members.first();
+ member.ban({ days: 7, reason: msg.author.tag + ': ' + args.join(' ').slice(3 + member.user.id.length) }).then(() => {
+ msg.channel.send(`Alright, I banned **${member.user.tag}** for the reason **${args.join(' ').slice(3 + member.user.id.length)}**`);
+ });
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'ban',
+ description: 'Ban a user out of the server',
+ usage: '@<User> <...reason>',
+ category: 'Moderation',
+};