profile command

This commit is contained in:
2025-04-06 08:29:06 -04:00
parent 4ace928563
commit 060a303283
3 changed files with 81 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ const commandFolders = fs.readdirSync(foldersPath);
const command = require(filePath);
if ('data' in command && 'execute' in command) {
client.commands.set(command.data.name, command);
console.log(`Registered command "${command.data.name}"`);
} else {
console.log(`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`);
}