From 3354289207dc34dbe1bdc0977148a5294c08204b Mon Sep 17 00:00:00 2001 From: neru Date: Wed, 14 Jan 2026 02:32:07 -0300 Subject: [PATCH] feat: add ping command --- src/commands/general/ping.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/commands/general/ping.ts diff --git a/src/commands/general/ping.ts b/src/commands/general/ping.ts new file mode 100644 index 0000000..27a7507 --- /dev/null +++ b/src/commands/general/ping.ts @@ -0,0 +1,16 @@ +import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"; +import { Command } from "../../commands"; + +const builder = new SlashCommandBuilder() + .setName('ping') + .setDescription('Pong.'); + +const cmd: Command = { + name: builder.name, + builder: builder, + execute: async (interaction: ChatInputCommandInteraction): Promise => { + interaction.reply('pong!'); + } +}; + +export default cmd; \ No newline at end of file