Don't try to load directories as files

This commit is contained in:
Cohee
2023-12-17 01:23:28 +02:00
parent 26e822046e
commit 940f701691

View File

@ -46,6 +46,7 @@ async function loadPlugins(app, pluginsPath) {
if (fs.statSync(pluginFilePath).isDirectory()) {
await loadFromDirectory(app, pluginFilePath);
continue;
}
// Not a JavaScript file.