From d5a655dbeb644808d4e167add88d22f38a32e634 Mon Sep 17 00:00:00 2001 From: NotMinhDucGamingTV <77107580+NotMinhDucGamingTV@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:39:16 +0700 Subject: [PATCH 1/4] Create nitro.js Ported from chat command. --- SlashCommands/Fun/nitro.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 SlashCommands/Fun/nitro.js diff --git a/SlashCommands/Fun/nitro.js b/SlashCommands/Fun/nitro.js new file mode 100644 index 00000000..e3e9fe25 --- /dev/null +++ b/SlashCommands/Fun/nitro.js @@ -0,0 +1,33 @@ +const { ApplicationCommandOptionType } = require("discord.js"); + +module.exports = { + name: "8ball", + description: "Tells you a fortune", + options: [ + { + name: "question", + description: "The question you want to ask the magic 8ball", + required: true, + type: ApplicationCommandOptionType.String, + } + ], + run: async (client, interaction, args) => { + var links = [ + `https://discord.gift/Hejs82hejdi9`, + `https://discord.gift/ejf88rjcUw8i`, + `https://discord.gift/aujtjc68Wisa`, + `https://discord.gift/aueuhdjx8eo9`, + `https://discord.gift/aytjx1juy8Wf`, + ]; + var images = [ + `https://cdn.discordapp.com/attachments/716917641209708647/748945266979242106/IMG_20200828_215650.jpg`, + `https://cdn.discordapp.com/attachments/716917641209708647/748945228907413675/IMG_20200828_220208.jpg`, + ]; + const embed = new Discord.EmbedBuilder() + .setTitle("Here is your Nitro") + .setDescription(links[Math.floor(Math.random() * links.length)]) + .setImage(images[Math.floor(Math.random() * images.length)]) + .setColor("Random"); + interaction.reply({ embeds: [embed] }); + }, +}; From 52be64b1a8d303dafe82a301f0237b9370805b8d Mon Sep 17 00:00:00 2001 From: NotMinhDucGamingTV <77107580+NotMinhDucGamingTV@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:42:40 +0700 Subject: [PATCH 2/4] Create slap.js Ported from chat command --- SlashCommands/Fun/slap.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SlashCommands/Fun/slap.js diff --git a/SlashCommands/Fun/slap.js b/SlashCommands/Fun/slap.js new file mode 100644 index 00000000..bbf450f5 --- /dev/null +++ b/SlashCommands/Fun/slap.js @@ -0,0 +1,25 @@ +const { ApplicationCommandOptionType } = require("discord.js"); + +module.exports = { + name: "slap", + description: "Slap someone in the server", + options: [ + { + name: "who", + description: "The person you want to slap", + required: true, + type: ApplicationCommandOptionType.Mentionable, + } + ], + run: async (client, interaction, args) => { + let member = interaction.options.getMentionable("who"); + if (!member) { + return interaction.reply("You need to mention a user"); + } + const embed = new Discord.EmbedBuilder() + .setDescription(interaction.author.username + " slapped :raised_back_of_hand: " + member.user.username + ", " + member.user.username + " is now in the hospital! :hospital:") + .setColor("Random"); + await interaction.reply({ embeds: [embed] }); + ); + }, +}; From 4a0a56543a6335559224020df7b60f81d5e5d525 Mon Sep 17 00:00:00 2001 From: NotMinhDucGamingTV <77107580+NotMinhDucGamingTV@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:44:54 +0700 Subject: [PATCH 3/4] Update slap.js --- SlashCommands/Fun/slap.js | 1 - 1 file changed, 1 deletion(-) diff --git a/SlashCommands/Fun/slap.js b/SlashCommands/Fun/slap.js index bbf450f5..eb97daa3 100644 --- a/SlashCommands/Fun/slap.js +++ b/SlashCommands/Fun/slap.js @@ -20,6 +20,5 @@ module.exports = { .setDescription(interaction.author.username + " slapped :raised_back_of_hand: " + member.user.username + ", " + member.user.username + " is now in the hospital! :hospital:") .setColor("Random"); await interaction.reply({ embeds: [embed] }); - ); }, }; From 7bb3b14ae8181f52abbe855097c4fb91db3ef990 Mon Sep 17 00:00:00 2001 From: NotMinhDucGamingTV <77107580+NotMinhDucGamingTV@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:46:01 +0700 Subject: [PATCH 4/4] Update nitro.js --- SlashCommands/Fun/nitro.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/SlashCommands/Fun/nitro.js b/SlashCommands/Fun/nitro.js index e3e9fe25..db39dc99 100644 --- a/SlashCommands/Fun/nitro.js +++ b/SlashCommands/Fun/nitro.js @@ -1,16 +1,9 @@ const { ApplicationCommandOptionType } = require("discord.js"); module.exports = { - name: "8ball", + name: "nitro", description: "Tells you a fortune", - options: [ - { - name: "question", - description: "The question you want to ask the magic 8ball", - required: true, - type: ApplicationCommandOptionType.String, - } - ], + options: null, run: async (client, interaction, args) => { var links = [ `https://discord.gift/Hejs82hejdi9`,