From 53136e0e6c3140bae3a141fa2afa4392fe785df4 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 29 Mar 2025 13:10:58 +0100 Subject: [PATCH] Fixed .DS_Store bug in plugin launcher --- src/core/startup/pluginLauncher.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/startup/pluginLauncher.ts b/src/core/startup/pluginLauncher.ts index b0e5153..1d3401c 100644 --- a/src/core/startup/pluginLauncher.ts +++ b/src/core/startup/pluginLauncher.ts @@ -14,8 +14,9 @@ export const loadAllPlugins = async () => { const plugins = fs.readdirSync("./plugins") //check & validate - plugins.forEach(async (p) => { + plugins.forEach((p) => { //prechecks + if (p === ".DS_Store") return //ignore MacOS DS_Store file if (!fs.statSync("./plugins/"+p).isDirectory()) return opendiscord.log("Plugin is not a directory, canceling plugin execution...","plugin",[ {key:"plugin",value:"./plugins/"+p} ])