From 4dc3612986965a7617b48518506ac9dd1025a2fe Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 12 Aug 2019 14:19:58 +0200 Subject: [PATCH] whoops --- 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 896eef31..b9b9881d 100644 --- a/commands/fun/fakebot.js +++ b/commands/fun/fakebot.js @@ -34,7 +34,7 @@ class fakebotCommand extends Command { } async exec(message, args) { - if (fs.existsSync(`./webhook/${message.guild.id}_${message.channel.id}.json`)) { + 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) {