Compare commits
4 Commits
b27cee8a0d
...
14d4df5a40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14d4df5a40 | ||
|
|
c21280d0c0 | ||
| 6c6bc451ad | |||
| 7228305294 |
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
Temps de Projet Femboy-France-Bot (Ancien nom): [](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/30e19ddc-4559-496e-8632-68eebdbc5450)
|
||||
|
||||
Temps de Projet France-Femboy-Bot (Actuel): [](https://wakatime.com/badge/user/82e1aed9-c281-4a7b-9909-1dfb8022b027/project/e30f3a7a-bda3-4fcf-9580-e57b6463ccab)
|
||||
@@ -60,6 +60,6 @@ module.exports = {
|
||||
)
|
||||
.setTimestamp();
|
||||
|
||||
await interaction.reply({ embeds: [embed], ephemeral: true });
|
||||
await interaction.reply({ embeds: [embed] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
21
commands/fun/cutie.js
Normal 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] });
|
||||
},
|
||||
};
|
||||
@@ -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}` });
|
||||
|
||||
@@ -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 n’est pas ton menu !', ephemeral: true });
|
||||
|
||||
if (i.user.id !== interaction.user.id) return i.reply({ content: 'Ce n’est 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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user