From dfd5fdc27cdbb43612ddbe1f20ee89419d29d231 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 20 May 2026 18:20:47 +0200 Subject: [PATCH] there --- server/plugins.js | 7 +++++-- views/setup.ejs | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/server/plugins.js b/server/plugins.js index 7815102..d008456 100644 --- a/server/plugins.js +++ b/server/plugins.js @@ -80,11 +80,14 @@ if (process.platform === 'win32') { const pluginConfigs = []; readJSFiles(pluginsDir).forEach(file => { + const dir = fs.statSync(filePath).isDirectory(); var filePath = path.join(pluginsDir, file); - if(fs.statSync(filePath).isDirectory()) filePath = path.join(pluginsDir, file, file); + if(dir) filePath = path.join(pluginsDir, file, file); const config = parsePluginConfig(filePath); - if (Object.keys(config).length > 0) pluginConfigs.push(config); + if(dir) config = {...config, prefix: file} + else config = {...config, prefix: ""} + pluginConfigs.push(config); }); module.exports = pluginConfigs; diff --git a/views/setup.ejs b/views/setup.ejs index 619a71e..b53457e 100644 --- a/views/setup.ejs +++ b/views/setup.ejs @@ -420,12 +420,12 @@

Any compatible .js plugin, which is in the "plugins" folder, will be listed here.
Click on the individual plugins to enable/disable them.



Download new plugins here!