From a201b05deffe845302ad63df5137925cc9e8bcdf Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 14 Oct 2020 20:21:38 +0200 Subject: [PATCH] some alliases Signed-off-by: loicbersier --- commands/admin/banword.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/banword.js b/commands/admin/banword.js index fb74b86e..f78bbe9c 100644 --- a/commands/admin/banword.js +++ b/commands/admin/banword.js @@ -5,7 +5,7 @@ const BannedWords = require('../../models').bannedWords; class BannedWordsCommand extends Command { constructor() { super('BannedWords', { - aliases: ['bannedword', 'banword', 'unbanword', 'censor', 'uncensor'], + aliases: ['bannedword', 'banword', 'unbanword', 'censor', 'uncensor', 'blacklistword', 'blacklist', 'unblacklist'], category: 'admin', userPermissions: ['MANAGE_MESSAGES'], clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES'], @@ -42,7 +42,7 @@ class BannedWordsCommand extends Command { args.word = args.word.replace(/[\u0250-\ue007]/g, ''); const bannedWords = await BannedWords.findOne({where: {word: args.word.toLowerCase(), serverID: message.guild.id}}); - if (message.util.parsed.alias == 'unbanword' || args.remove) { + if (message.util.parsed.alias == 'unbanword' || message.util.parsed.alias == 'uncensor' || message.util.parsed.alias == 'unblacklist' || args.remove || args.removeall) { if (args.removeall) { BannedWords.destroy({where: {serverID: message.guild.id}}); return message.channel.send('The banned words have been reset.');