From 505cd1c2b2d2366328f633af4eae00fed5d01fae Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 5 Dec 2018 23:31:03 +0100 Subject: [PATCH] --- commands/admin/{customresponse.js => customresponse} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename commands/admin/{customresponse.js => customresponse} (90%) diff --git a/commands/admin/customresponse.js b/commands/admin/customresponse similarity index 90% rename from commands/admin/customresponse.js rename to commands/admin/customresponse index b06e11f6..7caab212 100644 --- a/commands/admin/customresponse.js +++ b/commands/admin/customresponse @@ -34,14 +34,14 @@ module.exports = class CustomResponseCommand extends Command { let customresponse = {} let json = JSON.stringify(customresponse) - fs.readFile('DiscordBot/json/customresponse.json', 'utf8', function readFileCallback(err, data){ + fs.readFile('./json/customresponse.json', 'utf8', function readFileCallback(err, data){ if (err){ console.log(err); } else { customresponse = JSON.parse(data); //now it an object customresponse [message.guild.id] = { 'text': trigger, 'response': response } json = JSON.stringify(customresponse); //convert it back to json - fs.writeFile('DiscordBot/json/customresponse.json', json, 'utf8', function(err) { + fs.writeFile('./json/customresponse.json', json, 'utf8', function(err) { if(err) { return console.log(err); }