From 7d934bb6f89ae103507822f34f09f1e8872c59c3 Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Sun, 29 Mar 2020 18:31:15 +0200
Subject: [PATCH] fix crash?

---
 commands/admin/banword.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/commands/admin/banword.js b/commands/admin/banword.js
index 1e3de01..324a8ad 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}});