refactor(discord-bot): delete trainAI command

This commit is contained in:
GramingFoxTeam
2023-03-25 14:21:07 +03:00
parent bfed9f8480
commit f5214a6ace

View File

@@ -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
});
}
};