fixed major fuck up

This commit is contained in:
Loic Bersier 2018-12-06 04:38:11 +01:00
parent ba399e45b4
commit 54ed1d2e0e

View file

@ -34,7 +34,7 @@ module.exports = class CustomResponseCommand extends Command {
console.log(err);
} else {
customresponse = JSON.parse(data); //now it an object
customresponse [trigger] = { 'response': '', 'server': '' }
customresponse [trigger] = { 'response': '', 'server': message.guild.id }
json = JSON.stringify(customresponse); //convert it back to json
fs.writeFile('DiscordBot/json/customresponse.json', json, 'utf8', function(err) {
if(err) {