Initial upload of the project in its first usable version
This commit is contained in:
15
src/bot/commands/pingCommand.ts
Normal file
15
src/bot/commands/pingCommand.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { CommandInteraction, Client, ApplicationCommandType } from 'discord.js';
|
||||
import { Command } from '@/bot/models/command';
|
||||
|
||||
export const PingCommand: Command = {
|
||||
name: 'ping',
|
||||
description: 'A very simple ping command',
|
||||
type: ApplicationCommandType.ChatInput,
|
||||
execute: async (client: Client, interaction: CommandInteraction) => {
|
||||
const content = 'Pong';
|
||||
await interaction.followUp({
|
||||
ephemeral: true,
|
||||
content,
|
||||
});
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user