diff --git a/buttons.js b/buttons.js index 54e73f0..07d7b48 100644 --- a/buttons.js +++ b/buttons.js @@ -90,6 +90,6 @@ const buttons = { .setLabel('Recommended Servers') .setEmoji("✨") .setStyle(ButtonStyle.Link), - ) + ), }; module.exports = buttons; diff --git a/interactions/buttons/category/potion-craft/button1.js b/interactions/buttons/category/potion-craft/button1.js new file mode 100644 index 0000000..84d2dc6 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button1.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button1", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Mushroom**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162017720741662780/Logo_500x500_px_1.png?ex=653a6855&is=6527f355&hm=de294aa79d09c63489067c48a1b45a57c05e9556771ca18d5338230d79cf19e7&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button10.js b/interactions/buttons/category/potion-craft/button10.js new file mode 100644 index 0000000..eea781b --- /dev/null +++ b/interactions/buttons/category/potion-craft/button10.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button10", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Brain**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329088283914290/Logo_500x500_px_7.png?ex=653b8a51&is=65291551&hm=8ecb35551b1fe425f8af60522bf582df0c9064c493fa96f7882874e9732fe26f&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button11.js b/interactions/buttons/category/potion-craft/button11.js new file mode 100644 index 0000000..12b6716 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button11.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button11", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Human skull**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329087843504159/Logo_500x500_px_8.png?ex=653b8a51&is=65291551&hm=12904b650f52bf03dd116d661d83fd8de4383647c7dc829345817592b5ef87f0&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button12.js b/interactions/buttons/category/potion-craft/button12.js new file mode 100644 index 0000000..61f46de --- /dev/null +++ b/interactions/buttons/category/potion-craft/button12.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button12", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Eye balls**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329087164035134/Logo_500x500_px_9.png?ex=653b8a51&is=65291551&hm=8b163c41d58e3e6bd52d6526ab42f5093ed5ff15ce2a2ce4399aac3e6d634b55&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button2.js b/interactions/buttons/category/potion-craft/button2.js new file mode 100644 index 0000000..33c7e89 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button2.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button2", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Rat tail**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162022873418969108/Logo_500x500_px_2.png?ex=653a6d22&is=6527f822&hm=355da2c23ae1dd607523642b3a1c6a91a76c685553ea70a13e27caba76ae5c7c&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button3.js b/interactions/buttons/category/potion-craft/button3.js new file mode 100644 index 0000000..9bcfcfb --- /dev/null +++ b/interactions/buttons/category/potion-craft/button3.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button3", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Dragon scales**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329090787913768/Logo_500x500_px.png?ex=653b8a52&is=65291552&hm=fc1523ff3a33ad03db56074f1a616314b65f7eca4b75d40a67c46c033b76b849&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button4.js b/interactions/buttons/category/potion-craft/button4.js new file mode 100644 index 0000000..f6eb297 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button4.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button4", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Dog hair**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329090334933132/Logo_500x500_px_1.png?ex=653b8a52&is=65291552&hm=07fb602b1bbaebcabee381d2d366920eca9e98db069e45f219438b320b35e688&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button5.js b/interactions/buttons/category/potion-craft/button5.js new file mode 100644 index 0000000..e9c3d43 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button5.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button5", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Wet sock**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329089974218863/Logo_500x500_px_2.png?ex=653b8a52&is=65291552&hm=71c6d9a31ec46bd26d9d222cb0abcd2e693b0a0d751e74d6d5bf995a4693c70d&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button6.js b/interactions/buttons/category/potion-craft/button6.js new file mode 100644 index 0000000..dd1b735 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button6.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button6", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Phoenix feather**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329089600929792/Logo_500x500_px_3.png?ex=653b8a51&is=65291551&hm=3f20e6007bf6b361467ed71d9e58332b6d1464831198bc2f1162f7047ced4a3b&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button7.js b/interactions/buttons/category/potion-craft/button7.js new file mode 100644 index 0000000..c7c5aee --- /dev/null +++ b/interactions/buttons/category/potion-craft/button7.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button7", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Spider**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329089206652939/Logo_500x500_px_4.png?ex=653b8a51&is=65291551&hm=652cdef381db6cb8dd49e32288878f5a41cf9805da553392beb18ba3bd8a0566&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button8.js b/interactions/buttons/category/potion-craft/button8.js new file mode 100644 index 0000000..c36ab87 --- /dev/null +++ b/interactions/buttons/category/potion-craft/button8.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button8", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Froggo**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329088892088330/Logo_500x500_px_5.png?ex=653b8a51&is=65291551&hm=09b084686f3cf29c10670e17306f1cc9c360cda658b3b431ed8b166ccaf52c77&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/button9.js b/interactions/buttons/category/potion-craft/button9.js new file mode 100644 index 0000000..b5dcc2a --- /dev/null +++ b/interactions/buttons/category/potion-craft/button9.js @@ -0,0 +1,20 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder} = require("discord.js"); + +module.exports = { + id: "potion_craft_button9", + + async execute(interaction) { + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + await interaction.update({ embeds: [potionembed.setDescription('> Added **Zombie hand**!').setImage('https://cdn.discordapp.com/attachments/1038800498318397461/1162329088552341554/Logo_500x500_px_6.png?ex=653b8a51&is=65291551&hm=714064eb8337e28a076c56eabd784094efb0f01a907fe14a6b1b11c470945f69&')]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/buttons/buttons.js b/interactions/buttons/category/potion-craft/buttons/buttons.js new file mode 100644 index 0000000..a7f2f40 --- /dev/null +++ b/interactions/buttons/category/potion-craft/buttons/buttons.js @@ -0,0 +1,97 @@ +/** + * @file PotionCraft Buttons. + * @author TechyGiraffe999 + */ + +const { ActionRowBuilder, ButtonBuilder, ButtonStyle, Events,EmbedBuilder, Embed } = require('discord.js'); + +const buttons = { + + potioncraft_1: new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button1') + .setEmoji('<:mushrooms:1162033001660690613>') + .setLabel('Mushroom') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button2') + .setEmoji('<:rattail:1162032271780499579>') + .setLabel('Rat tail') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button3') + .setEmoji('<:dragonscales:1162032300578570440>') + .setLabel('Dragon scales') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button4') + .setEmoji('<:dogfur:1162032331637399552>') + .setLabel('Dog hair') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button5') + .setEmoji('<:wetsock:1162032568040964259>') + .setLabel('Wet sock') + .setStyle(ButtonStyle.Primary) + ), + + potioncraft_2: new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button6') + .setEmoji('<:pfeather:1162032571761299476>') + .setLabel('Phoenix feather') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button7') + .setEmoji('<:spidey:1162032575687180308>') + .setLabel('Spider') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button8') + .setEmoji('<:froggo:1162032579411705966>') + .setLabel('Froggo') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button9') + .setEmoji('<:zhand:1162032582909775923>') + .setLabel('Zombie hand') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button10') + .setEmoji('<:brian:1162032586206482525>') + .setLabel('Brain') + .setStyle(ButtonStyle.Primary) + ), + + potioncraft_3 : new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button11') + .setEmoji('<:humenskol:1162032590165905479>') + .setLabel('Human skull') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_button12') + .setEmoji('') + .setLabel('Eye balls') + .setStyle(ButtonStyle.Primary), + + new ButtonBuilder() + .setCustomId('potion_craft_finish') + .setEmoji('✅') + .setLabel('Finish Potion') + .setStyle(ButtonStyle.Success) + ) +}; +module.exports = buttons; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/buttons/buttons_disabled.js b/interactions/buttons/category/potion-craft/buttons/buttons_disabled.js new file mode 100644 index 0000000..8ac85b9 --- /dev/null +++ b/interactions/buttons/category/potion-craft/buttons/buttons_disabled.js @@ -0,0 +1,110 @@ +/** + * @file Potion Craft Disabled Buttons. + * @author TechyGiraffe999 + */ + +const { ActionRowBuilder, ButtonBuilder, ButtonStyle, Events,EmbedBuilder, Embed } = require('discord.js'); + +const buttons = { + + potioncraft_1: new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button1') + .setEmoji('<:mushrooms:1162033001660690613>') + .setLabel('Mushroom') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button2') + .setEmoji('<:rattail:1162032271780499579>') + .setLabel('Rat tail') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button3') + .setEmoji('<:dragonscales:1162032300578570440>') + .setLabel('Dragon scales') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button4') + .setEmoji('<:dogfur:1162032331637399552>') + .setLabel('Dog hair') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button5') + .setEmoji('<:wetsock:1162032568040964259>') + .setLabel('Wet sock') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + ), + + potioncraft_2: new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button6') + .setEmoji('<:pfeather:1162032571761299476>') + .setLabel('Phoenix feather') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button7') + .setEmoji('<:spidey:1162032575687180308>') + .setLabel('Spider') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button8') + .setEmoji('<:froggo:1162032579411705966>') + .setLabel('Froggo') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button9') + .setEmoji('<:zhand:1162032582909775923>') + .setLabel('Zombie hand') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button10') + .setEmoji('<:brian:1162032586206482525>') + .setLabel('Brain') + .setStyle(ButtonStyle.Primary) + .setDisabled(true) + ), + + potioncraft_3 : new ActionRowBuilder() + .addComponents( + new ButtonBuilder() + .setCustomId('potion_craft_button11') + .setEmoji('<:humenskol:1162032590165905479>') + .setLabel('Human skull') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_button12') + .setEmoji('') + .setLabel('Eye balls') + .setStyle(ButtonStyle.Primary) + .setDisabled(true), + + new ButtonBuilder() + .setCustomId('potion_craft_finish') + .setEmoji('✅') + .setLabel('Finish Potion') + .setStyle(ButtonStyle.Success) + .setDisabled(true) + ) +}; +module.exports = buttons; \ No newline at end of file diff --git a/interactions/buttons/category/potion-craft/finish.js b/interactions/buttons/category/potion-craft/finish.js new file mode 100644 index 0000000..af326da --- /dev/null +++ b/interactions/buttons/category/potion-craft/finish.js @@ -0,0 +1,63 @@ +/** + * @type {import('../../../typings').ButtonInteractionCommand} + */ + +const { EmbedBuilder } = require("discord.js"); +const buttons = require('./buttons/buttons_disabled'); + +module.exports = { + id: "potion_craft_finish", + + async execute(interaction) { + const message = await interaction.message.fetch(); + const embedData = message.embeds[0]; + if (embedData.data.description === "> Use the buttons below to create your very own Potion. When you're done, click `Finish Potion`.") { + const pick = new EmbedBuilder() + .setDescription('> You need to pick at least **one** ingredient to brew a potion!\n> Your not *this* amateur, are you?') + .setColor("Blurple") + return interaction.reply({ embeds: [pick], ephemeral: true }) + } + await interaction.update({embeds: [message.embeds[0]], components: [buttons.potioncraft_1, buttons.potioncraft_2, buttons.potioncraft_3]}) + + + + const potion = ["https://cdn.discordapp.com/attachments/1059913125308145716/1162748757796978748/potion1.png?ex=653d112a&is=652a9c2a&hm=1865e513cbe91fd99485ba08f0f999afd22a01f26f664551215d21d0c73d4a9e&", + "https://cdn.discordapp.com/attachments/1059913125308145716/1162748758212227082/potion2.png?ex=653d112a&is=652a9c2a&hm=351f8c2aeb651d0ff4c5a99161a1012e9286048f06d3a7a2b4bc1e0c14a343de&", + "https://cdn.discordapp.com/attachments/1059913125308145716/1162748758518403082/potion3.png?ex=653d112a&is=652a9c2a&hm=09f6d4aef93cb9a5d71c25cc28835bc146f0545330a11ef98854938f76cdacca&", + "https://cdn.discordapp.com/attachments/1059913125308145716/1162748758841372753/potion4.png?ex=653d112a&is=652a9c2a&hm=26d5a88cb96690b26d1c92a7b9a3e97038291761f8c572a2465f8b5abf3be22c&", + "https://cdn.discordapp.com/attachments/1059913125308145716/1162748759327903824/potion5.png?ex=653d112b&is=652a9c2b&hm=60652404c2f721a4ced1c5e35602357749d6abb8707d2bee7094915f1bbc08a0&", + "https://cdn.discordapp.com/attachments/1059913125308145716/1162748759583752262/potion6.png?ex=653d112b&is=652a9c2b&hm=6dc2e6d8db54dec07abec9556cd9d5a767ec9b9db67c33109621e46c67f57488&"] + + const randomp = potion[Math.floor(Math.random() * potion.length)]; + const wait = require('node:timers/promises').setTimeout; + + const finalembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Potion finished!') + .setImage(randomp) + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + loading = new EmbedBuilder() + .setDescription('**Brewing your potion..**') + .setColor("Blurple") + + const loadingMsg = await interaction.followUp({ embeds: [loading]}) + const loadingDots = ['.', '..', '...']; + let i = 0; + const loadingInterval = setInterval(async () => { + loading = new EmbedBuilder() + .setDescription(`**Brewing your potion${loadingDots[i]}**`) + .setColor("Blurple") + await loadingMsg.edit({ embeds: [loading] }); + i = (i + 1) % loadingDots.length; + }, 500); + + await wait(2500) + clearInterval(loadingInterval); + + + await loadingMsg.edit({ embeds: [finalembed]}); + return; + }, +}; \ No newline at end of file diff --git a/interactions/slash/misc/potioncraft.js b/interactions/slash/misc/potioncraft.js new file mode 100644 index 0000000..64e407f --- /dev/null +++ b/interactions/slash/misc/potioncraft.js @@ -0,0 +1,29 @@ +/** + * @type {import('../../../typings').SlashInteractionCommand} + */ + +const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); +const buttons = require('../../buttons/category/potion-craft/buttons/buttons'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('potioncraft') + .setDescription('Brew some potions!'), + async execute (interaction) { + + const potionembed = new EmbedBuilder() + .setAuthor({ name: '🧙 Imagine being a Witch.'}) + .setTitle('Brew your own Potion!') + .setDescription('> Use the buttons below to create your very own Potion. When you\'re done, click `Finish Potion`.') + .setThumbnail('https://cdn.discordapp.com/attachments/1038800498318397461/1161989207305232455/Logo_500x500_px.png?ex=653a4dc7&is=6527d8c7&hm=5747c0a3b44afb52f9a933e5fb3dd448e78c1c10ca4133b4b46838469ea8904b&') + .setFooter({ text: `${interaction.guild.name}'s Amateur Witch. 🧙`}) + + + const start = new EmbedBuilder() + .setDescription('Let\'s start making something special!') + .setColor("Blurple") + await interaction.reply({ embeds: [start], ephemeral: true }); + + await interaction.channel.send({ embeds: [potionembed], components: [buttons.potioncraft_1, buttons.potioncraft_2, buttons.potioncraft_3] }); + } +} \ No newline at end of file