From f5214a6ace4ac02f9da0c989c028b02cb49f668d Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Sat, 25 Mar 2023 14:21:07 +0300 Subject: [PATCH] refactor(discord-bot): delete trainAI command --- bots/discord/commands/trainAI.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 bots/discord/commands/trainAI.js diff --git a/bots/discord/commands/trainAI.js b/bots/discord/commands/trainAI.js deleted file mode 100644 index cd72423..0000000 --- a/bots/discord/commands/trainAI.js +++ /dev/null @@ -1,21 +0,0 @@ -import { SlashCommandBuilder } from 'discord.js'; - -export default { - data: new SlashCommandBuilder() - .setName('train') - .setDescription('Train the AI.'), - async execute(helper, config, interaction) { - if (!interaction.member.roles.cache.has(config.discord.trainingRole)) - return interaction.reply({ - content: 'You don\'t have the permission to do this.', - ephemeral: true - }); - - helper.trainAI(); - - interaction.reply({ - content: 'Sent the trainAI command to the server.', - ephemeral: true - }); - } -};