From baca3f0993962448cd3168da531f92b3f669ba64 Mon Sep 17 00:00:00 2001 From: nocode Date: Sun, 13 Sep 2026 12:19:14 +0200 Subject: [PATCH] feat(stats): add stats command skeleton Refs: #90 --- src/commands/community/stats.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/commands/community/stats.js diff --git a/src/commands/community/stats.js b/src/commands/community/stats.js new file mode 100644 index 0000000..43c7101 --- /dev/null +++ b/src/commands/community/stats.js @@ -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()}`)] }); +}