From ab664e768280949e4e392a0a43d6d47ed1fc9152 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 12 Dec 2021 17:06:27 +0500 Subject: [PATCH] fix --- helpers/autoUpdateDocs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/autoUpdateDocs.js b/helpers/autoUpdateDocs.js index e4b697b1..5865b589 100644 --- a/helpers/autoUpdateDocs.js +++ b/helpers/autoUpdateDocs.js @@ -45,12 +45,13 @@ module.exports = { text += `${table(arrCat)}\n\n`; }); + if (!fs.existsSync("./dashboard/views/docs")) fs.mkdirSync("./dashboard/views/docs"); if (fs.existsSync("./dashboard/views/docs")) { - fs.mkdirSync("./dashboard/views/docs"); fs.writeFileSync("./dashboard/views/docs/commands.md", text); client.logger.log("Dashboard docs updated!"); }; + if (!fs.existsSync("./docs")) fs.mkdirSync("./docs"); if (fs.existsSync("./docs")) { fs.mkdirSync("./docs"); fs.writeFileSync("./docs/commands.md", text);