mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-11 11:21:00 +02:00
Ajout des alias pour les commandes existantes
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user