This commit is contained in:
JonnyBro 2021-12-12 17:06:27 +05:00
parent bc0edb597e
commit ab664e7682

View file

@ -45,12 +45,13 @@ module.exports = {
text += `${table(arrCat)}\n\n`; text += `${table(arrCat)}\n\n`;
}); });
if (!fs.existsSync("./dashboard/views/docs")) fs.mkdirSync("./dashboard/views/docs");
if (fs.existsSync("./dashboard/views/docs")) { if (fs.existsSync("./dashboard/views/docs")) {
fs.mkdirSync("./dashboard/views/docs");
fs.writeFileSync("./dashboard/views/docs/commands.md", text); fs.writeFileSync("./dashboard/views/docs/commands.md", text);
client.logger.log("Dashboard docs updated!"); client.logger.log("Dashboard docs updated!");
}; };
if (!fs.existsSync("./docs")) fs.mkdirSync("./docs");
if (fs.existsSync("./docs")) { if (fs.existsSync("./docs")) {
fs.mkdirSync("./docs"); fs.mkdirSync("./docs");
fs.writeFileSync("./docs/commands.md", text); fs.writeFileSync("./docs/commands.md", text);