From 6089fe46f164fb487fd1d450cfa7d8087f56eb4f Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 5 Dec 2018 23:23:56 +0100 Subject: [PATCH] fixed an error i thjink --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f1087ec..00d62ba 100644 --- a/index.js +++ b/index.js @@ -81,7 +81,6 @@ client.registry // Reply with images as attachement if(imgResponseObject[message_content]) { var autoresponse = new SelfReloadJSON('DiscordBot/json/autoresponse.json'); - var customresponse = new SelfReloadJSON('DiscordBot/json/customresponse.json'); if(autoresponse[message.channel.id] == 'enable') message.channel.send({files: [imgResponseObject[message_content]]}); } @@ -94,6 +93,7 @@ client.registry // auto respond to messages else if(responseObject[message_content]) { var autoresponse = new SelfReloadJSON('DiscordBot/json/autoresponse.json'); + var customresponse = new SelfReloadJSON('DiscordBot/json/customresponse.json'); if(autoresponse[message.channel.id] == 'enable') message.channel.send(responseObject[message_content]); message.channel.send(customresponse[message.guild.id]['response'])