Ajout des alias pour les commandes existantes

This commit is contained in:
Tutur33
2024-02-17 13:33:46 +01:00
parent aa1811a9f1
commit 5a15326eba
67 changed files with 146 additions and 5 deletions
+3 -1
View File
@@ -4,10 +4,12 @@ const GestionDb = new db.table("gestion");
module.exports = {
name: 'help',
aliases: ['h', 'aide'],
description: 'Affiche la liste des commandes',
category: 'utils',
emote: '📚',
utilisation: 'help [commande]',
async execute(message, args, client) {
const botId = client.user.id;
const botInfo = GestionDb.get(botId);
@@ -63,7 +65,7 @@ module.exports = {
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
}
}
let totalCommands = client.commands.size;
let totalCommands = liste.length
let description = `Sélectionnez une catégorie parmi les options ci-dessous pour obtenir de l'aide sur les commandes correspondantes.\n Il y a ${totalCommands} commandes disponibles\n\n`;
for (const [category, commands] of Object.entries(categories)) {