This commit is contained in:
yhqe committed 2026-03-12 22:12:53 -05:00
1 parent 9f9c852a36
commit 09ddaba972
18 files changed
+1205 -64

No files matched your search

+4 -4
View File
@@ -24,7 +24,7 @@ function loadCommands(client) {
if (!command.name || typeof command.execute !== 'function') {
logger.warn(
`[CommandHandler] Skipping ${file}: missing "name" or "execute".`,
`[commandhandler] skipping ${file}: missing "name" or "execute"`,
);
continue;
}
@@ -38,14 +38,14 @@ function loadCommands(client) {
}
}
logger.debug(`[CommandHandler] Loaded command: ${command.name}`);
logger.debug(`[commandhandler] loaded command: ${command.name}`);
loaded++;
} catch (err) {
logger.error(`[CommandHandler] Failed to load ${file}:`, err);
logger.error(`[commandhandler] failed to load ${file}:`, err);
}
}
logger.info(`[CommandHandler] ${loaded} command(s) loaded.`);
logger.info(`[commandhandler] ${loaded} command(s) loaded`);
}
module.exports = { loadCommands };