mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
add alias command name
This commit is contained in:
@@ -44,7 +44,16 @@ module.exports = {
|
||||
gestion: [],
|
||||
utils: [],
|
||||
};
|
||||
|
||||
let liste = [];
|
||||
for (const command of client.commands.values()) {
|
||||
const existingCommand = liste.find(cmd => cmd.name === command.name);
|
||||
if (!existingCommand) {
|
||||
liste.push(command);
|
||||
}
|
||||
}
|
||||
console.log(liste);
|
||||
for (const command of liste) {
|
||||
if (command.category) {
|
||||
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
name: 'random',
|
||||
aliases: ['rand'],
|
||||
description: 'Affiche un nombre aléatoire entre 2 nombres donnés',
|
||||
emote: '🎲',
|
||||
utilisation: 'random [min] [max]',
|
||||
|
||||
Reference in New Issue
Block a user