From 3a505e4cd99d7aff5c4ef1024c5ab9a54cf6c179 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 12 Aug 2019 14:20:59 +0200 Subject: [PATCH] write the file correctly --- commands/fun/fakebot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/fakebot.js b/commands/fun/fakebot.js index b9b9881d..2408a1a6 100644 --- a/commands/fun/fakebot.js +++ b/commands/fun/fakebot.js @@ -37,7 +37,7 @@ class fakebotCommand extends Command { if (!fs.existsSync(`./webhook/${message.guild.id}_${message.channel.id}.json`)) { message.channel.createWebhook('fakebot') .then(webhook => { - fs.writeFile(`./webhook/${message.guild.id}.json`, `{"id": "${webhook.id}", "token": "${webhook.token}", "channel": "${message.channel.id}"}`, function (err) { + fs.writeFile(`./webhook/${message.guild.id}_${message.channel.id}.json`, `{"id": "${webhook.id}", "token": "${webhook.token}", "channel": "${message.channel.id}"}`, function (err) { if (err) { console.log(err); }