mirror of
https://github.com/arthur-pbty/gestion-perso.git
synced 2026-06-22 01:50:55 +02:00
add game command
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ module.exports = {
|
||||
let categories: { [key: string]: Command[] } = {};
|
||||
commands.forEach((command: any) => {
|
||||
if (!categories[command.category]) {
|
||||
categories[command.category] = [{ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation}];
|
||||
categories[command.category] = [];
|
||||
}
|
||||
categories[command.category]?.push(command);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user