From eb4acd503f1a4f9feefa3faed77d73911260a51d Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 07:53:53 +0100 Subject: [PATCH] little fix for an unknown bug --- index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index c8190a3..7ea76ed 100644 --- a/index.js +++ b/index.js @@ -81,14 +81,15 @@ client.registry var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); let message_content = message.content.toLowerCase(); - if (message_content.includes('stop')) return; + if (message_content == ('stop')) return; + if (message_content == ('is')) return; + if (message_content == ('on')) return; if (message.author.bot) return; { // User autoresponse - if(customresponse[message_content]) + if(customresponse[message_content]) { message.channel.send(customresponse[message_content]) - - + } // If autoresponse is enable send the response if(autoresponse[message.channel.id] == 'enable') { // Reply with images as attachement