Skip to content

Commit

Permalink
Merge pull request #213 from NotMinhDucGamingTV/patch-20
Browse files Browse the repository at this point in the history
Patch 20
  • Loading branch information
Simpleboy353 authored Jun 10, 2023
2 parents 87b1e54 + 7bb3b14 commit a433e12
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
26 changes: 26 additions & 0 deletions SlashCommands/Fun/nitro.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const { ApplicationCommandOptionType } = require("discord.js");

module.exports = {
name: "nitro",
description: "Tells you a fortune",
options: null,
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] });
},
};
24 changes: 24 additions & 0 deletions SlashCommands/Fun/slap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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] });
},
};

0 comments on commit a433e12

Please sign in to comment.