From 859d91469612cddea4725b18a143023e4c2e72db Mon Sep 17 00:00:00 2001 From: Keyemail Date: Thu, 11 Jul 2024 02:43:22 -0700 Subject: [PATCH] Added help command --- commands/etc/help.js | 54 ++++++++++++++++++++++++++++++++++ commands/{test => etc}/ping.js | 0 2 files changed, 54 insertions(+) create mode 100644 commands/etc/help.js rename commands/{test => etc}/ping.js (100%) diff --git a/commands/etc/help.js b/commands/etc/help.js new file mode 100644 index 0000000..9b70a7b --- /dev/null +++ b/commands/etc/help.js @@ -0,0 +1,54 @@ +const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('help') + .setDescription('Displays all the commands for the bot'), + async execute(interaction) { + const helpEmbed = new EmbedBuilder() + .setColor(0x0F3061) + .setTitle('Welcome to MBot.') + .addFields( + { + name: 'Help', + value: 'Displays the commands for this bot.' + }, + { + name: 'Ping', + value: 'First command for the bot, pong\'s you back!' + }, + { + name: 'Ban', + value: 'Bans any person (with permission) on your server with reason.' + }, + { + name: 'Kick', + value: 'Kicks any person (with permission) on your server with reason.' + }, + { + name: 'Play', + value: 'Plays any music with a query input.' + }, + { + name: 'Pause', + value: 'Pauses the current music playing.' + }, + { + name: 'Stop', + value: 'Stop the current music playing and gets rid of the queue.' + }, + { + name: 'Skip', + value: 'Skips the current track that is playing.' + }, + { + name: 'Queue', + value: 'List the current queue in the server.' + }, + ) + .setTimestamp() + .setFooter({ text: 'MBot' }); + + await interaction.reply({ embeds: [helpEmbed] }); + } +} diff --git a/commands/test/ping.js b/commands/etc/ping.js similarity index 100% rename from commands/test/ping.js rename to commands/etc/ping.js