diff --git a/src/commands/gitea/gitea.js b/src/commands/gitea/gitea.js new file mode 100644 index 0000000..d41d20d --- /dev/null +++ b/src/commands/gitea/gitea.js @@ -0,0 +1,16 @@ +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('gitea') + .setDescription('Activité Gitea de FWS Arch') + .addSubcommand((sub) => sub.setName('activity').setDescription('Commits, issues et PR récents')) + .addSubcommand((sub) => sub.setName('release').setDescription('Releases disponibles')); + +// TODO(M5-T06 / M5-T07): implement with services/gitea/gitea-client.js. +export async function execute(interaction) { + await interaction.reply({ embeds: [notImplementedEmbed(`/gitea ${interaction.options.getSubcommand()}`)] }); +}