mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
feat: 8ball
This commit is contained in:
36
src/commands/silly/8ball.ts
Normal file
36
src/commands/silly/8ball.ts
Normal 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,
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user