summaryrefslogtreecommitdiff
path: root/src/commands/fun/motivate.ts
blob: 3dcd7f6a4f42c71b7fd59311867771bd7bcb319c (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
26
27
28
29
import mq from 'motivations';
import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random';

module.exports = class MotivateFun extends Command {
    constructor(client) {
        super(client, {
            name: 'motivate',
            aliases: ['motivateme', 'motivation'],
            group: 'fun',
            memberName: 'motivate',
            description: 'Gives you a random motivating quote from Star Wars.',
            throttling: {
                usages: 5,
                duration: 30
            },
            examples: [
                'uwu!motivate',
                'uwu!motivateme'
            ],
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
        });
    }
    run(msg: CommandoMessage) {
        var quoteNum = Math.floor((Math.random() * 62) + 1);
        msg.reply(mq[quoteNum] + ' ' + emoji.random())
    }
};