1 file changed
+17
@@ -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()}`)] });
|
||||
}
|
||||
Reference in new issue
Block a user