feat(stats): add stats command skeleton

Refs: #90
This commit is contained in:
nocode committed 2026-09-13 12:25:10 +02:00
1 parent 9ccecb3071
commit baca3f0993
1 file changed
+17
+17
View File
@@ -0,0 +1,17 @@
import { SlashCommandBuilder } from 'discord.js';
import { ACCESS_LEVELS } from '../../config/constants.js';
import { notImplementedEmbed } from '../../ui/embeds.js';
export const access = ACCESS_LEVELS.USER;
export const data = new SlashCommandBuilder()
.setName('stats')
.setDescription('Statistiques publiques')
.addSubcommand((sub) => sub.setName('discord').setDescription('Statistiques du serveur Discord'))
.addSubcommand((sub) => sub.setName('gitea').setDescription('Activité et indicateurs Gitea'))
.addSubcommand((sub) => sub.setName('fws').setDescription('Indicateurs FWS / FWS Arch'));
// TODO(M11-T02..T04): implement per data source.
export async function execute(interaction) {
await interaction.reply({ embeds: [notImplementedEmbed(`/stats ${interaction.options.getSubcommand()}`)] });
}