harmony/test/cmds/ping.ts
2021-04-17 13:49:26 +05:30

10 lines
279 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.gateway.ping}ms`)
}
}