2022-03-26 03:33:18 -05: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"
|
|
|
|
];
|
2021-01-23 01:08:05 -06:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
module.exports = {
|
2021-01-23 01:08:05 -06:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
name: "nom",
|
|
|
|
description: "Noms an user!",
|
2022-03-26 03:58:15 -05:00
|
|
|
async execute(_0, message, _1, footer) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const taggedUser = message.mentions.users.first();
|
|
|
|
|
|
|
|
if(!taggedUser) {
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-26 03:33:18 -05:00
|
|
|
"title": "<:AnitroxError:809651936563429416> Error",
|
|
|
|
"color": 9442302,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer,
|
2022-03-26 03:33:18 -05:00
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "Well that happened...",
|
|
|
|
"value": "You need to @mention an user!"
|
|
|
|
}
|
|
|
|
]
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2022-03-26 03:33:18 -05:00
|
|
|
} else {
|
|
|
|
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-26 03:33:18 -05:00
|
|
|
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
|
|
|
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
|
|
|
|
"color": 8311585,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer,
|
2022-03-26 03:33:18 -05:00
|
|
|
"image": {
|
|
|
|
"url": gif
|
|
|
|
}
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2021-01-19 18:08:38 -06:00
|
|
|
}
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
|
|
|
}
|