summaryrefslogtreecommitdiff
path: root/src/commands/fun/offspring.ts
blob: 7152a1c47806aee7de619edd001506ed9cc75ce9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random'
const genders = ['boy', 'girl']

module.exports = class OffspringFun extends Command {
    constructor(client) {
        super(client, {
            name: 'offspring',
            group: 'fun',
            memberName: 'offspring',
            description: 'Determines your child\'s gender.',
            examples: ['uwu!offspring'],
            throttling: {
                usages: 5,
                duration: 30
            },
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
        });
    }
    run(msg: CommandoMessage) {
        msg.reply(`It\'s a ${genders[Math.floor(Math.random() * genders.length)]}! ${emoji.random()}`)
    }
};