feat(arabot): add ping command

This commit is contained in:
Anthony 2022-07-25 02:18:28 +01:00
parent c011ad78fd
commit a2dcdddfc6

View File

@ -25,11 +25,11 @@ export class PingCommand extends Command {
super(context, { super(context, {
...options, ...options,
name: 'ping', name: 'ping',
description: 'ping pong', description: 'Pings the bot',
}); });
} }
// Registers the slash command // Registers that this is a slash command
public override registerApplicationCommands(registry: Command.Registry) { public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) => builder registry.registerChatInputCommand((builder) => builder
.setName(this.name) .setName(this.name)