diff --git a/src/commands/ping.js b/src/commands/ping.js deleted file mode 100644 index 9a08807..0000000 --- a/src/commands/ping.js +++ /dev/null @@ -1,10 +0,0 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); - -module.exports = { - data: new SlashCommandBuilder() - .setName('ping') - .setDescription('Replies with Pong!'), - async execute(interaction) { - return interaction.reply('Pong!'); - } -}; diff --git a/src/events/interactionCreate.js b/src/events/interactionCreate.js deleted file mode 100644 index 53af414..0000000 --- a/src/events/interactionCreate.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - name: 'interactionCreate', - async execute(interaction) { - if (!interaction.isCommand()) return; - - const command = client.commands.get(interaction.commandName); - - if (!command) return; - - try { - await command.execute(interaction); - } catch (error) { - console.error(error); - await interaction.reply({ content: 'Impossible de lancer cette commande.', ephemeral: true }); - } - }, -}; diff --git a/src/events/ready.js b/src/events/ready.js deleted file mode 100644 index b9b1a1e..0000000 --- a/src/events/ready.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - name: 'ready', - once: true, - execute() { - console.log('PrĂȘt !'); - } -};