add commands system

This commit is contained in:
Asaki Yuki
2025-10-18 17:41:27 +07:00
parent c677cb5d68
commit ffdce31ecb
14 changed files with 148 additions and 105 deletions

7
src/cmd/ping.ts Normal file
View File

@@ -0,0 +1,7 @@
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
export const data = new SlashCommandBuilder().setName("ping").setDescription("Replies with Pong!")
export const exec = async (interaction: ChatInputCommandInteraction) => {
await interaction.reply("Pong!")
}