10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
import { Command } from '../../../mod.ts'
|
|
import { CommandContext } from '../../models/command.ts'
|
|
|
|
export default class PingCommand extends Command {
|
|
name = 'ping'
|
|
|
|
execute(ctx: CommandContext): void {
|
|
ctx.message.reply(`Pong! Latency: ${ctx.client.ping}ms`)
|
|
}
|
|
}
|