From e02887babf2a23551f5a4847775eed5ca5db2eac Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 6 Dec 2018 20:16:31 +0100 Subject: [PATCH] restored --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 73be99e6..b525ee26 100644 --- a/index.js +++ b/index.js @@ -94,6 +94,8 @@ client.registry } // auto respond to messages else if(responseObject[message_content]) { + var autoresponse = new SelfReloadJSON('DiscordBot/json/autoresponse.json'); + if(autoresponse[message.channel.id] == 'enable') message.channel.send(responseObject[message_content]); // User autoresponse } else if(customresponse[message_content]) {