Compare commits

..

4 Commits

Author SHA1 Message Date
Syxpi
14d4df5a40 Flemme. 2025-09-28 13:00:01 +02:00
Syxpi
c21280d0c0 Merge branch 'main' of https://github.com/France-Femboy/France-Femboy-Bot 2025-09-23 21:35:04 +02:00
6c6bc451ad Update README.md 2025-09-23 21:24:57 +02:00
7228305294 Create README.md 2025-09-23 21:24:44 +02:00
7 changed files with 33 additions and 11 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
Temps de Projet Femboy-France-Bot (Ancien nom): [![wakatime](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/30e19ddc-4559-496e-8632-68eebdbc5450.svg)](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/30e19ddc-4559-496e-8632-68eebdbc5450)
Temps de Projet France-Femboy-Bot (Actuel): [![wakatime](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/e30f3a7a-bda3-4fcf-9580-e57b6463ccab.svg)](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/e30f3a7a-bda3-4fcf-9580-e57b6463ccab)

View File

@@ -60,6 +60,6 @@ module.exports = {
)
.setTimestamp();
await interaction.reply({ embeds: [embed], ephemeral: true });
await interaction.reply({ embeds: [embed] });
}
};

View File

@@ -11,9 +11,8 @@ module.exports = {
.setDescription('The command to reload.')
.setRequired(true)),
async execute(interaction) {
// Vérification côté bot pour être sûr
if (!interaction.member.permissions.has(PermissionFlagsBits.Administrator)) {
return interaction.reply({ content: '❌ Only administrators can use this command.', ephemeral: true });
return interaction.reply({ content: '❌ Only administrators can use this command.', embeds: [embed] });
}
@@ -21,7 +20,7 @@ module.exports = {
const command = interaction.client.commands.get(commandName);
if (!command) {
return interaction.reply({ content: `There is no command with name \`${commandName}\`!`, ephemeral: true });
return interaction.reply({ content: `There is no command with name \`${commandName}\`!`, embeds: [embed] });
}
delete require.cache[require.resolve(`../${command.category}/${command.data.name}.js`)];
@@ -29,10 +28,10 @@ module.exports = {
try {
const newCommand = require(`../${command.category}/${command.data.name}.js`);
interaction.client.commands.set(newCommand.data.name, newCommand);
await interaction.reply({ content: `✅ Command \`${newCommand.data.name}\` was reloaded!`, ephemeral: true });
await interaction.reply({ content: `✅ Command \`${newCommand.data.name}\` was reloaded!`, });
} catch (error) {
console.error(error);
await interaction.reply({ content: `❌ Error while reloading \`${command.data.name}\`:\n\`${error.message}\``, ephemeral: true });
await interaction.reply({ content: `❌ Error while reloading \`${command.data.name}\`:\n\`${error.message}\``, embeds: [embed] });
}
},
};

21
commands/fun/cutie.js Normal file
View File

@@ -0,0 +1,21 @@
const {SlashCommandBuilder, EmbedBuilder} = require("discord.js");
module.exports = {
category: 'fun',
data: new SlashCommandBuilder()
.setName('cutie')
.setDescription('Juste montrer qui sont les cuties de ce serveur'),
async execute(interaction) {
const embed = new EmbedBuilder()
.setColor('#00FFFF')
.setTitle('🥰 Liste des Cuties')
.addFields(
{ name: '👑 Reine des Cuties', value: `<@366171099966210049> | Tags: Tellement Cutie que j'suis jalouse 🥺`, inline: true },
{ name: '👑 Roi des Cuties', value: '<@868244823059075102> | Tags: Richou 💵 et Bg 😎', inline: true},
{ name: '👸 Princesses des Cuties', value: `<@361526553940721684> | Titre Refusé, mais ordonné (snif)`, inline: true }
)
await interaction.reply({ embeds: [embed] });
},
};

View File

@@ -25,7 +25,7 @@ module.exports = {
const reason = interaction.options.getString('reason') || 'No reason provided';
const durationInput = interaction.options.getString('duration');
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ embeds: [embed] })
if (!target) return interaction.editReply({ content: 'No user specified!' });
await interaction.guild.bans.create(target.id, { reason: `Banned by ${interaction.user.tag}: ${reason}` });

View File

@@ -12,7 +12,7 @@ module.exports = {
.setRequired(true)),
async execute(interaction) {
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ embeds: [embed] });
const member = interaction.options.getUser('membre');
@@ -70,8 +70,7 @@ module.exports = {
// Collecteur de boutons
const collector = message.createMessageComponentCollector({ time: 60_000 });
collector.on('collect', i => {
if (i.user.id !== interaction.user.id) return i.reply({ content: 'Ce nest pas ton menu !', ephemeral: true });
if (i.user.id !== interaction.user.id) return i.reply({ content: 'Ce nest pas ton menu !', embeds: [embed] });
if (i.customId === 'next') currentPage = (currentPage + 1) % embeds.length;
if (i.customId === 'prev') currentPage = (currentPage - 1 + embeds.length) % embeds.length;

View File

@@ -13,7 +13,7 @@ module.exports = {
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
async execute(interaction) {
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ embeds: [embed] });
const input = interaction.options.getString('user').trim();