From ca52b15280c2870d0f211017589a8799ee5ecda9 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Sun, 25 Dec 2022 15:52:51 +0300 Subject: [PATCH] fix: node_modules being treated as a bot folder --- bots/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bots/index.js b/bots/index.js index cc33417..e861f67 100644 --- a/bots/index.js +++ b/bots/index.js @@ -5,6 +5,7 @@ const botFolders = readdirSync('./', { withFileTypes: true }) .map(dirent => dirent.name); for (const botFolder of botFolders) { + if (botFolder === 'node_modules') continue; const botIndex = await import(`./${botFolder}/index.js`); botIndex.default(); } \ No newline at end of file