From 565da6aa5e8c11f470b5e215347b418f686a6c6f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 3 Jul 2022 17:38:07 +0200 Subject: [PATCH] useless files --- src/commands/ping.js | 10 ---------- src/events/interactionCreate.js | 17 ----------------- src/events/ready.js | 7 ------- 3 files changed, 34 deletions(-) delete mode 100644 src/commands/ping.js delete mode 100644 src/events/interactionCreate.js delete mode 100644 src/events/ready.js 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 !'); - } -};