blob: d7857c7047b443af7cd8697fce93d21c2d88c83d (
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
|
import { Command } from 'discord-akairo';
import { Message } from 'discord.js';
export default class PingBot extends Command {
public constructor() {
super('ping', {
aliases: ['ping'],
category: 'bot',
description: {
content: 'Check the latency of the ping to the Discord API.',
usage: '',
examples: [
''
]
},
ratelimit: 3
});
}
public exec(msg: Message): Promise<Message> {
return msg.channel.send(`Pong! \`${this.client.ws.ping}ms\`.`);
}
}
|