harmony/test/cmds/ping.ts
2021-04-04 11:22:47 +05:30

10 lines
271 B
TypeScript

import { Command, CommandContext } from '../../mod.ts'
export default class PingCommand extends Command {
name = 'ping'
execute(ctx: CommandContext): void {
console.log(ctx.args, ctx.argString)
ctx.message.reply(`Pong! Latency: ${ctx.client.ping}ms`)
}
}