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

module.exports = class ClapFun extends Command {
    constructor(client) {
        super(client, {
            name: 'clapify',
            aliases: ['clap', 'clappify'],
            group: 'fun',
            memberName: 'clapify',
            description: 'Allows you to clapify anything.',
            args: [
                {
                    key: 'say',
                    prompt: 'What would you like to clapify?',
                    type: 'string'
                }
            ],
            examples: ['uwu!clapify please clap this lol'],
            throttling: {
                usages: 5,
                duration: 30
            },
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
        });
    }
    run(msg: CommandoMessage, { say }) {
        msg.say(say.split(' ').join('👏'))
        msg.delete()
    }
};