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

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