mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Создать папку docs если отсутствует
This commit is contained in:
parent
3f7d721a7a
commit
bc0edb597e
1 changed files with 2 additions and 0 deletions
|
@ -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!");
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue