forked from Supositware/Haha-Yes
properly delete the tag
This commit is contained in:
parent
045e8d9503
commit
477d8ec6ee
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module.exports = class CustomResponseCommand extends Command {
|
|||
console.log(err);
|
||||
} else {
|
||||
customresponse = JSON.parse(data); //now it an object
|
||||
customresponse [trigger] = ''
|
||||
delete customresponse[trigger]
|
||||
json = JSON.stringify(customresponse); //convert it back to json
|
||||
fs.writeFile(`./tag/${message.guild.id}.json`, json, 'utf8', function(err) {
|
||||
if(err) {
|
||||
|
|
Loading…
Reference in a new issue