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