2020-11-07 09:05:14 +00:00
|
|
|
import { Command } from "../../../mod.ts";
|
|
|
|
import { CommandContext } from "../../models/command.ts";
|
|
|
|
|
|
|
|
export default class PingCommand extends Command {
|
|
|
|
name = "ping"
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|