diff --git a/commands/admin/banword.js b/commands/admin/banword.js index 1e3de013..324a8add 100644 --- a/commands/admin/banword.js +++ b/commands/admin/banword.js @@ -35,6 +35,9 @@ class BannedWordsCommand extends Command { } async exec(message, args) { + // eslint-disable-next-line no-useless-escape + if (message.content.includes('(?:\s|/\*.*\*/|//.*|#.*)*\(.*\)')) return; // This make bot crash + if (!args.word) args.word = ''; args.word = args.word.replace(/[\u0250-\ue007]/g, ''); const bannedWords = await BannedWords.findOne({where: {word: args.word.toLowerCase(), serverID: message.guild.id}});