harmony/src/test/cmds/ping.ts

11 lines
274 B
TypeScript
Raw Normal View History

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