mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix
This commit is contained in:
parent
bc0edb597e
commit
ab664e7682
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue