From 585ba99cc5b2843ab84bc00733c5c46ab58c8b13 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Mon, 10 Dec 2018 21:37:47 +0100 Subject: [PATCH] fix a stupid bug that happen for idk wich reasons --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 7ea76ed..aa3833c 100644 --- a/index.js +++ b/index.js @@ -81,9 +81,12 @@ client.registry var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); let message_content = message.content.toLowerCase(); +// fix a stupid bug that happen for idk wich reasons if (message_content == ('stop')) return; if (message_content == ('is')) return; if (message_content == ('on')) return; + if (message_content == ('once')) return; + if (message.author.bot) return; { // User autoresponse