2021-01-19 18:00:32 -06:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
name: "cuddle",
|
|
|
|
description: "Cuddle an user!",
|
|
|
|
execute(client, message, args) {
|
|
|
|
const messageAuthor = message.author
|
|
|
|
const taggedUser = message.mentions.users.first();
|
2021-01-26 14:03:02 -06:00
|
|
|
|
|
|
|
// --------------------------------------
|
|
|
|
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]);
|
|
|
|
// ---------------------------------------
|
|
|
|
|
2021-02-25 01:03:33 -06:00
|
|
|
if(!taggedUser) {
|
|
|
|
return message.channel.send("<:AnitroxError:809651936563429416> You need to specify an user!")
|
|
|
|
}
|
2021-01-26 14:03:02 -06:00
|
|
|
const embed = {
|
2021-01-19 18:00:32 -06:00
|
|
|
"title": ":heart: Cuddle",
|
2021-01-23 01:08:05 -06:00
|
|
|
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
|
2021-02-06 12:15:55 -06:00
|
|
|
"color": 9442302,
|
2021-01-19 18:00:32 -06:00
|
|
|
"footer": {
|
|
|
|
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
|
|
|
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
|
|
|
},
|
|
|
|
"image": {
|
2021-01-26 14:03:02 -06:00
|
|
|
"url": gif
|
2021-01-19 18:00:32 -06:00
|
|
|
}
|
|
|
|
}
|
2021-01-23 01:08:05 -06:00
|
|
|
|
|
|
|
|
|
|
|
message.channel.send({ embed: embed });
|
2021-01-19 18:00:32 -06:00
|
|
|
}
|
|
|
|
}
|