This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
anitrox/commands/kiss.js

37 lines
1.3 KiB
JavaScript
Raw Normal View History

const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/807671954055626812/kiss5.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807671956236140554/kiss2.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807671964599713862/kiss1.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807671971168387082/kiss4.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/807672017217781840/kiss3.gif"
];
2021-01-19 18:08:38 -06:00
module.exports = {
2021-01-30 23:25:00 -06:00
name: require('path').parse(__filename).name,
description: "Kisses a user!",
2022-04-18 11:30:12 -05:00
2022-03-29 13:51:43 -05:00
async execute(client, message, _, config) {
const taggedUser = message.mentions.users.first();
const avatarURL = message.author.displayAvatarURL();
if(!taggedUser) {
await message.channel.send(client.generateErrorMessage("You need to @mention a user!", avatarURL));
} else {
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
await message.channel.send({embeds: [{
"title": ":heart: Kiss",
2022-03-26 13:20:32 -05:00
"description": `${taggedUser} You have been kissed by ${message.author}!`,
"color": 9442302,
"footer": {
"icon_url": avatarURL,
2022-03-29 13:51:43 -05:00
"text": config.footerTxt
},
"image": {
"url": gif
}
}]});
2021-01-19 18:08:38 -06:00
}
}
}