From 9eff0ce8279f5beb0a8063ca10f6d13e354bcdc3 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 00:55:01 +0100 Subject: [PATCH] dosent send message when someone say stop --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 5d3561d1..c8190a38 100644 --- a/index.js +++ b/index.js @@ -74,12 +74,14 @@ client.registry channel.send({ embed: kickEmbed }); }); + client.on("message", async (message) => { try { var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`) var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); let message_content = message.content.toLowerCase(); + if (message_content.includes('stop')) return; if (message.author.bot) return; { // User autoresponse