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/snuggle.js

41 lines
1.3 KiB
JavaScript
Raw Normal View History

const { MessageEmbed } = require('discord.js');
const gifchoices = [
"https://media.discordapp.net/attachments/803658122299572255/806775382995894282/anime-couple-snuggle-gif-5.gif?width=450&height=238",
"https://media.discordapp.net/attachments/803658122299572255/806775411928989726/snuggl1.gif",
"https://cdn.discordapp.com/attachments/803658122299572255/806775422833786911/ImpureDeepAmbushbug-small.gif"
];
2021-02-02 23:56:33 -06:00
module.exports = {
2021-02-06 12:15:55 -06:00
name: "snuggle",
description: "Snuggle an user!",
async execute(_0, message, _1, footer) {
2021-02-06 12:15:55 -06:00
const taggedUser = message.mentions.users.first();
if(!taggedUser) {
await message.channel.send(new MessageEmbed({
"title": "<:AnitroxError:809651936563429416> Error",
"color": 13632027,
"footer": footer,
"fields": [
{
"name": "Well that happened...",
"value": "You need to @mention an user!"
2021-02-02 23:56:33 -06:00
}
]
}));
} else {
await message.channel.send(new MessageEmbed({
"title": "<:BlobSnuggleCat:806759753450782731> Snuggle",
"description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!",
"color": 9442302,
"footer": footer,
"image": {
"url": gif
2021-02-06 12:15:55 -06:00
}
}));
}
}
}