Создать папку docs если отсутствует

This commit is contained in:
JonnyBro 2021-12-12 17:04:54 +05:00
parent 3f7d721a7a
commit bc0edb597e

View file

@ -46,11 +46,13 @@ module.exports = {
}); });
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")) { if (fs.existsSync("./docs")) {
fs.mkdirSync("./docs");
fs.writeFileSync("./docs/commands.md", text); fs.writeFileSync("./docs/commands.md", text);
client.logger.log("Docs updated!"); client.logger.log("Docs updated!");
}; };