fix: node_modules being treated as a bot folder

This commit is contained in:
GramingFoxTeam
2022-12-25 15:52:51 +03:00
parent cd7156e792
commit ca52b15280

View File

@@ -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();
}