toowake

kiss.js

Apr 7th, 2023
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
  2.  
  3. module.exports = {
  4. data: new SlashCommandBuilder()
  5. .setName("kiss")
  6. .setDescription("kiss a discord member")
  7. .addUserOption(option => option
  8. .setName("user")
  9. .setDescription("the user you want to kiss")
  10. .setRequired(true)
  11. ),
  12.  
  13. async execute (interaction) {
  14. const links = [
  15. "https://media3.giphy.com/media/bGm9FuBCGg4SY/giphy.gif",
  16. "https://thumbs.gfycat.com/AgedWhisperedBarnacle-size_restricted.gif",
  17. "https://i.gifer.com/YQzo.gif",
  18. "https://i.pinimg.com/originals/2f/23/c5/2f23c53755a5c3494a7f54bbcf04d1cc.gif",
  19. "https://aniyuki.com/wp-content/uploads/2021/07/aniyuki-anime-gif-kiss-14.gif",
  20. "https://aniyuki.com/wp-content/uploads/2021/07/aniyuki-anime-gif-kiss-13.gif",
  21. "https://64.media.tumblr.com/e32206d2d51424eeb3c017c1ef0e80ad/fbe2f7e1b2143d0b-6a/s500x750/0280bd77e01a03bac8994f7a3c1aafa267abad0a.gif",
  22. ];
  23.  
  24. const choice = Math.floor(Math.random() * links.length);
  25.  
  26. const user = interaction.options.getUser("user");
  27.  
  28. const link = `${links[choice]}`;
  29.  
  30. const embed = new EmbedBuilder()
  31. .setThumbnail(`${link}`)
  32. .setColor("Red")
  33. .addFields({
  34. name: "You kissed",
  35. value: `<@${user.id}>`,
  36. inline: true
  37. })
  38. .setTimestamp()
  39.  
  40. return await interaction.reply({ embeds: [embed]})
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment