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

module.exports = class SupportBot extends Command {
    constructor(client) {
        super(client, {
            name: 'support',
            group: 'bot',
            memberName: 'support',
            description: 'Gives you the bot\'s support server link.',
            examples: ['uwu!support'],
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            throttling: {
                usages: 5,
                duration: 30
            },
        });
    }
    run(msg: CommandoMessage) {
        let emb = new MessageEmbed()
            .setDescription('For support, please join [this server](https://crack.cf/uwufier-support). ' + emoji.random())
        msg.say(emb)
    }
};