blob: 31f6482b583db8061dc62301d865f2569f296cb8 (
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 { Command, CommandoMessage } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
import emoji from 'emoji-random';
module.exports = class ServerCountBot extends Command {
constructor(client) {
super(client, {
name: 'servercount',
aliases: ['sc', 'scount', 'serverc'],
group: 'bot',
memberName: 'servercount',
description: 'Tells you the amount of servers uwufier is in.',
userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
ownerOnly: true
});
}
run(msg: CommandoMessage) {
msg.say('Please wait...').then(m => {
m.edit(`** **`);
let emb = new MessageEmbed()
.setDescription(`Currently running on ${this.client.guilds.cache.size} server(s). ` + emoji.random())
.setColor(0xFFCC4D)
msg.say(emb);
});
}
};
|