diff --git a/config/options.json b/config/options.json index cefde55..85706f4 100644 --- a/config/options.json +++ b/config/options.json @@ -7,5 +7,6 @@ "staffOtherChannel": "1082036748558803104", "hypixelGuildID": "5a353a170cf2e529044f2935", "onlineLogChannel": "1101144489306886226", - "botLogChannel": "1174403585149243472" + "botLogChannel": "1174403585149243472", + "instructionsgif": "https://cdn.discordapp.com/attachments/838716950723952640/1188211176300089384/4DMu513uNxbM.gif?ex=6599b2e4&is=65873de4&hm=e727c7a39aacbc47d6a5453f4b5f792a45679983c30d662cd258a311381b6df0&" } diff --git a/src/commands/instructions.js b/src/commands/instructions.js new file mode 100644 index 0000000..216a3e3 --- /dev/null +++ b/src/commands/instructions.js @@ -0,0 +1,42 @@ +const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js") +const { color, devMessage, instructionsgif } = require("../../config/options.json") + +module.exports = { + name: "instructions", + description: "Instructions for verification", + type: "slash", + dev: true, + public: false, + + data: new SlashCommandBuilder() + .setName("instructions") + .setDescription("Instructions for verification") + .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + + async execute(interaction) { + const embedColor = Number(color.replace("#", "0x")) + + await interaction.reply({ + embeds: [{ + title: "Verification", + description: "1. Log onto hypixel.\n" + + "2. Right click with the head in your hotbar.\n" + + "3. Click on the social media icon.\n" + + "4. Click on the discord icon.\n" + + "5. Type your username in the chat and press enter.\n" + + "6. Run the `/verify` command in this channel.\n", + color: embedColor, + footer: { + text: interaction.guild.name + " | " + devMessage, + icon_url: interaction.guild.iconURL({ dynamic: true }) + }, + image: { + url: instructionsgif + } + }] + }) + + } +}