Removed Custom Builder. Cleaned-Up package.json. Make the bot partially work. Command register was added but, has to be fixed.

This commit is contained in:
Ahmad Khan 2023-09-21 20:15:38 -04:00
parent 169ef72bfd
commit 4e818fb965
14 changed files with 152 additions and 360 deletions

15
source/commands/ping.ts Normal file
View file

@ -0,0 +1,15 @@
import { SlashCommandBuilder } from 'discord.js';
interface Command {
data: SlashCommandBuilder;
execute: (interaction: any) => Promise<void>;
}
export const command: Command = {
data: new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!'),
execute: async (interaction) => {
await interaction.reply('Pong!');
},
};
export default command;