From bc0edb597e195fd30d4166d2831e611982a712bb Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 12 Dec 2021 17:04:54 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BF=D0=BA=D1=83=20docs=20=D0=B5=D1=81=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D1=83?= =?UTF-8?q?=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/autoUpdateDocs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/autoUpdateDocs.js b/helpers/autoUpdateDocs.js index 1b6f8aee..e4b697b1 100644 --- a/helpers/autoUpdateDocs.js +++ b/helpers/autoUpdateDocs.js @@ -46,11 +46,13 @@ module.exports = { }); 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"); fs.writeFileSync("./docs/commands.md", text); client.logger.log("Docs updated!"); };