1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

oh brother

This commit is contained in:
2026-02-24 14:17:30 +01:00
parent 722277c41f
commit 8a53bf1027

View File

@@ -319,15 +319,15 @@ function startPluginsWithDelay(plugins, delay) {
plugins.forEach((pluginPath, index) => { plugins.forEach((pluginPath, index) => {
setTimeout(() => { setTimeout(() => {
const pluginName = path.basename(pluginPath, '.js'); // Extract plugin name from path const pluginName = path.basename(pluginPath, '.js'); // Extract plugin name from path
logInfo(`-----------------------------------------------------------------`); consoleCmd.logInfo(`-----------------------------------------------------------------`);
logInfo(`Plugin ${pluginName} loaded successfully!`); consoleCmd.logInfo(`Plugin ${pluginName} loaded successfully!`);
require(pluginPath); require(pluginPath);
}, delay * index); }, delay * index);
}); });
// Add final log line after all plugins are loaded // Add final log line after all plugins are loaded
setTimeout(() => { setTimeout(() => {
logInfo(`-----------------------------------------------------------------`); consoleCmd.logInfo(`-----------------------------------------------------------------`);
}, delay * plugins.length); }, delay * plugins.length);
} }