From 0a4d0a0d2d954032c649b4726e11969ef98b0e76 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 20 Oct 2018 16:00:39 +0200 Subject: [PATCH] removed test thingy --- commands/admin/autoresponse | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/admin/autoresponse b/commands/admin/autoresponse index bc24fd5..89feb6b 100644 --- a/commands/admin/autoresponse +++ b/commands/admin/autoresponse @@ -24,16 +24,16 @@ module.exports = class sayCommand extends Command { if(blacklist[message.author.id]) return message.channel.send("You are blacklisted") - let test = {} - let json = JSON.stringify(test) + let autoresponse = {} + let json = JSON.stringify(autoresponse) fs.readFile('json/autoresponse.json', 'utf8', function readFileCallback(err, data){ if (err){ console.log(err); } else { - test = JSON.parse(data); //now it an object - test [message.channel.id] = text - json = JSON.stringify(test); //convert it back to json + autoresponse = JSON.parse(data); //now it an object + autoresponse [message.channel.id] = text + json = JSON.stringify(autoresponse); //convert it back to json fs.writeFile('json/autoresponse.json', json, 'utf8', function(err) { if(err) { return console.log(err);