mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix: node_modules being treated as a bot folder
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user