summaryrefslogtreecommitdiff
path: root/src/commands/fun/insult.ts
blob: 47643e73f4e6394601d64ab4d0393a1e3b7774bd (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
25
import { Command, CommandoMessage } from 'discord.js-commando';
import insult from 'insult';
import emoji from 'emoji-random';

module.exports = class InsultFun extends Command {
    constructor(client) {
        super(client, {
            name: 'insult',
            aliases: ['insults', 'roast', 'roasts'],
            group: 'fun',
            memberName: 'insult',
            description: 'Gives you a random insult.',
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            throttling: {
                usages: 5,
                duration: 30
            },
            examples: ['uwu!insult', 'uwu!insults']
        });
    }
    run(msg: CommandoMessage) {
        msg.reply(insult.Insult() + ' ' + emoji.random())
    }
};