mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-30 18:59:40 +00:00
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:
parent
169ef72bfd
commit
4e818fb965
14 changed files with 152 additions and 360 deletions
15
source/commands/ping.ts
Normal file
15
source/commands/ping.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue