blob: 5068c22df5a2c307ff06fe38c611da1085a5f0f6 (
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 { Command } from 'discord-akairo';
import { Message } from 'discord.js';
export default class ServerCountOwner extends Command {
public constructor() {
super('servercount', {
aliases: ['servercount', 'server-count'],
category: 'owner',
description: {
content: 'Check the amount of servers the bot is in.',
usage: '',
examples: [
''
]
},
ratelimit: 3,
ownerOnly: true
});
}
public exec(msg: Message): Promise<Message> {
return msg.channel.send(`${this.client.user.username} is currently in **${this.client.guilds.cache.size}** server(s).`);
}
}
|