feat: 8ball

This commit is contained in:
2025-06-27 23:25:34 +02:00
committed by SrIzan10
parent 63b9ad301c
commit 23f252a88a

View File

@@ -0,0 +1,36 @@
import { commandModule, CommandType } from '@sern/handler';
import { ApplicationCommandOptionType } from 'discord.js';
export default commandModule({
name: '8ball',
type: CommandType.Slash,
plugins: [],
description: 'Preguntale a la 8-ball cosas.',
//alias : [],
options: [
{
name: 'pregunta',
description: 'Escribe lo que le quieres preguntar.',
type: ApplicationCommandOptionType.String,
required: true,
},
],
execute: async (ctx) => {
var eightballwords = [
'Probablemente',
'Sí',
'No',
'Dudable',
'Como lo veo, todo indica a que sí',
'A lo mejor',
'No cuentes con ello',
'Buena suerte',
];
await ctx.reply({
content: `La bola tiene respuesta: ${
eightballwords[Math.floor(Math.random() * eightballwords.length)]
}.`,
ephemeral: true,
});
},
});