From f98f7e6a34f02e8d6ea6673fbe68ab6db28a2e89 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 2 Mar 2025 11:49:28 -0500 Subject: Added the fundementials of the bot --- bot/src/commands/ping.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bot/src/commands/ping.js (limited to 'bot/src/commands/ping.js') diff --git a/bot/src/commands/ping.js b/bot/src/commands/ping.js new file mode 100644 index 0000000..996c705 --- /dev/null +++ b/bot/src/commands/ping.js @@ -0,0 +1,9 @@ +import { SlashCommandBuilder } from 'discord.js'; +export default { + data: new SlashCommandBuilder() + .setName('ping') + .setDescription('Pong!'), + async execute(interaction) { + return await interaction.reply(`**PONG!** :ping_pong: ${Math.round(interaction.client.ws.ping)} ms`); + } +}; -- cgit v1.2.3