2022-04-21 20:53:03 -05:00
|
|
|
const { Constants } = require('discord.js');
|
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
const gifchoices = [
|
2022-04-21 18:09:21 -05:00
|
|
|
'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'
|
2022-03-26 03:33:18 -05:00
|
|
|
];
|
|
|
|
|
2021-02-02 23:56:33 -06:00
|
|
|
module.exports = {
|
|
|
|
|
2022-04-18 11:25:40 -05:00
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-22 15:16:14 -05:00
|
|
|
description: 'Snuggle a user!',
|
2022-04-21 20:53:03 -05:00
|
|
|
options: [{
|
|
|
|
name: 'user',
|
|
|
|
description: 'The user to snuggle',
|
|
|
|
required: true,
|
|
|
|
type: Constants.ApplicationCommandOptionTypes.USER
|
|
|
|
}],
|
2022-04-21 18:09:21 -05:00
|
|
|
|
2022-04-21 23:44:02 -05:00
|
|
|
async parseInteraction (client, config, interaction) {
|
|
|
|
await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user')));
|
|
|
|
},
|
|
|
|
|
|
|
|
handle (client, config, user, target) {
|
|
|
|
if (!target) return client.generateErrorMessage('You need to @mention a user!', user.displayAvatarURL());
|
|
|
|
|
|
|
|
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
|
|
|
return {
|
|
|
|
embeds: [{
|
|
|
|
title: '<:BlobSnuggleCat:806759753450782731> Snuggle',
|
|
|
|
description: `${target} You have been snuggled by ${user}!`,
|
|
|
|
color: 9442302,
|
|
|
|
footer: {
|
|
|
|
icon_url: user.displayAvatarURL(),
|
|
|
|
text: config.footerTxt
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
url: gif
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
};
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|