2021-01-19 18:08:38 -06:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
name: "nom",
|
|
|
|
description: "Noms an user!",
|
|
|
|
execute(client, message, args) {
|
2022-03-21 12:55:29 -05:00
|
|
|
const {footerTxt} = require('../config.json');
|
2021-01-19 18:08:38 -06:00
|
|
|
const taggedUser = message.mentions.users.first();
|
2021-01-26 14:03:02 -06:00
|
|
|
|
|
|
|
// --------------------------------------
|
|
|
|
const gifchoices = [
|
|
|
|
"https://i.imgur.com/Ns1RBzX.gif",
|
|
|
|
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
|
|
|
|
"https://i.gifer.com/36Nx.gif",
|
|
|
|
"https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.gif"
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
|
|
|
|
var gif = (gifchoices[index]);
|
|
|
|
// ---------------------------------------
|
2021-01-30 23:48:07 -06:00
|
|
|
const errorembed = {
|
2021-02-25 01:03:33 -06:00
|
|
|
"title": "<:AnitroxError:809651936563429416> Error",
|
2021-02-06 12:15:55 -06:00
|
|
|
"color": 9442302,
|
2021-01-30 23:48:07 -06:00
|
|
|
"footer": {
|
|
|
|
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
2021-07-21 16:03:29 -05:00
|
|
|
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
2021-01-30 23:48:07 -06:00
|
|
|
},
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "Well that happened...",
|
|
|
|
"value": "You need to @mention an user!"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
if(!taggedUser) {
|
|
|
|
return message.channel.send({ embed: errorembed});
|
|
|
|
// Checks if a user was mentioned. If not, returns error message.
|
|
|
|
}
|
|
|
|
|
2021-01-26 14:03:02 -06:00
|
|
|
const embed = {
|
2021-01-19 18:08:38 -06:00
|
|
|
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
2021-01-23 01:08:05 -06:00
|
|
|
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
|
2021-01-19 18:08:38 -06:00
|
|
|
"color": 8311585,
|
|
|
|
"footer": {
|
2022-03-21 12:55:29 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
2021-01-19 18:08:38 -06:00
|
|
|
},
|
|
|
|
"image": {
|
2021-01-26 14:03:02 -06:00
|
|
|
"url": gif
|
2021-01-19 18:08:38 -06:00
|
|
|
}
|
|
|
|
}
|
2021-01-23 01:08:05 -06:00
|
|
|
|
|
|
|
|
|
|
|
message.channel.send({ embed: embed });
|
2021-01-19 18:08:38 -06:00
|
|
|
}
|
|
|
|
}
|