module.exports = { name: "cuddle", description: "Cuddle an user!", execute(client, message, args) { const taggedUser = message.mentions.users.first(); const {footerTxt} = require('../config.json'); // -------------------------------------- const gifchoices = [ "https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif", "https://media1.tenor.com/images/6d73b0a9cadef5310be4b6160d2f959a/tenor.gif?itemid=12099823", "https://media.tenor.com/images/2636cf3c8152631b4630bf71757a4afa/tenor.gif", "https://i.imgur.com/JiFpT5E.gif" ]; const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1); var gif = (gifchoices[index]); // --------------------------------------- if(!taggedUser) { return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!") } const embed = { "title": ":heart: Cuddle", "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!", "color": 9442302, "footer": { "icon_url": message.author.displayAvatarURL(), "text": footerTxt }, "image": { "url": gif } } message.channel.send({ embed: embed }); } }