From 443f4621ae73ebd599494c89660d8ff5ee89f480 Mon Sep 17 00:00:00 2001 From: Alan Martines Date: Mon, 30 Jan 2023 13:37:13 -0400 Subject: [PATCH] Update --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index beb42cf..b72d0ad 100644 --- a/server.js +++ b/server.js @@ -35,6 +35,10 @@ yo('My-WhatsApp', { // // ------------------------------------------------------------------------------------------------// // +if (!fs.existsSync(config.PATCH_TOKENS)){ + fs.mkdirSync(config.PATCH_TOKENS); +} +// fs.access(".env", fs.constants.F_OK, async (err) => { if (err && err.code === 'ENOENT') { logger.error('- Arquivo ".env"');