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

module.exports = class ServerCountUtility extends Command {
    constructor(client) {
        super(client, {
            name: 'servercount',
            aliases: ['sc', 'scount', 'serverc'],
            group: 'utility',
            memberName: 'servercount',
            description: 'Tells you the amount of servers uwufy is in.',
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
        });
    }
    run(msg: CommandoMessage) {
        msg.channel.send('Please wait...').then(m => {
            m.edit(`** **`);

            let emb = new MessageEmbed()
                .setDescription(`Currently running on 31${this.client.guilds.cache.size} server(s). ` + emoji.random())
                .setColor(0xFFCC4D)

            msg.channel.send(emb);
        });
    }
};