2020-11-08 07:57:24 +00:00
|
|
|
import { Command } from '../../../mod.ts'
|
|
|
|
import { CommandContext } from '../../models/command.ts'
|
2020-11-07 09:05:14 +00:00
|
|
|
|
|
|
|
export default class PingCommand extends Command {
|
2020-12-02 12:29:52 +00:00
|
|
|
name = 'ping'
|
2020-11-07 09:05:14 +00:00
|
|
|
|
|
|
|
execute(ctx: CommandContext): void {
|
2020-11-07 13:05:37 +00:00
|
|
|
ctx.message.reply(`Pong! Latency: ${ctx.client.ping}ms`)
|
2020-11-07 09:05:14 +00:00
|
|
|
}
|
2020-12-02 12:29:52 +00:00
|
|
|
}
|