mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
refactor(discord-bot): delete trainAI command
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user