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!"); };