mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +00:00
feat(discord-bot): a way to train AI
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
"discord": {
|
"discord": {
|
||||||
"token": "YOUR-BOT-TOKEN-HERE",
|
"token": "YOUR-BOT-TOKEN-HERE",
|
||||||
"id": "1038762591805247518",
|
"id": "1038762591805247518",
|
||||||
"trainRole": "965267139902705744"
|
"trainRole": "965267139902705744",
|
||||||
|
"trainingRole": "952987191401926697"
|
||||||
},
|
},
|
||||||
|
|
||||||
"telegram": {
|
"telegram": {
|
||||||
|
|||||||
21
bots/discord/commands/trainAI.js
Normal file
21
bots/discord/commands/trainAI.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import { SlashCommandBuilder } from 'discord.js';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data: new SlashCommandBuilder()
|
||||||
|
.setName('train')
|
||||||
|
.setDescription('Train the AI.'),
|
||||||
|
async execute(interaction) {
|
||||||
|
if (!interaction.member.roles.cache.get(global.config.discord.trainingRole))
|
||||||
|
return interaction.reply({
|
||||||
|
content: 'You don\'t have the permission to do this.',
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
|
|
||||||
|
interaction.client.helper.trainAI();
|
||||||
|
|
||||||
|
interaction.reply({
|
||||||
|
content: 'Sent the trainAI command to the server.',
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user