Dough Git

clove/inviteTracker

src/commands/ping.ts

back to src/commands

/* src/commands/ping.ts */

import {
  type ChatInputCommandInteraction,
  MessageFlags,
  SlashCommandBuilder,
} from "discord.js";

export const pingCommand = new SlashCommandBuilder()
  .setName("ping")
  .setDescription("Check whether the bot is responding");

export async function replyToPing(interaction: ChatInputCommandInteraction) {
  await interaction.reply({
    content: "Pong! The bot is online.",
    flags: MessageFlags.Ephemeral,
  });
}