chore: 🎉 initial commit

This commit is contained in:
UltraLionFr
2025-08-26 01:01:34 +02:00
parent bf6d61e5a3
commit 30cfbd73fc
27 changed files with 1341 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("help")
.setDescription("Affiche la liste des commandes disponibles"),
async execute(interaction, client) {
const globalCommands = await client.application.commands.fetch();
const commandList = globalCommands.map(
cmd => `</${cmd.name}:${cmd.id}> — ${cmd.description || "Pas de description"}`
).join("\n");
const embed = new EmbedBuilder()
.setTitle("📖 Aide du bot")
.setDescription(
commandList.length > 0
? "Voici la liste des commandes disponibles :\n\n" + commandList
: "❌ Aucune commande trouvée."
)
.setColor(0x5e99ff)
.setThumbnail(client.user.displayAvatarURL())
.setFooter({
text: `QuantumCraft Studios • Demandé par ${interaction.user.tag}`,
iconURL: interaction.user.displayAvatarURL()
})
.setTimestamp();
await interaction.reply({ embeds: [embed], flags: 64 });
}
};
+11
View File
@@ -0,0 +1,11 @@
const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Répond avec Pong !"),
async execute(interaction) {
await interaction.reply("🏓 Pong !");
}
};