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-29 13:51:43 -05:00
|
|
|
async execute(client, message, _, config) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const taggedUser = message.mentions.users.first();
|
|
|
|
|
|
|
|
if(!taggedUser) {
|
2022-03-26 12:31:03 -05:00
|
|
|
await message.channel.send(client.generateErrorMessage("You need to @mention a user!", message.author.displayAvatarURL()));
|
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",
|
2022-03-26 13:20:32 -05:00
|
|
|
"description": `${taggedUser} You have been nommed by ${message.author}!`,
|
2022-03-26 03:33:18 -05:00
|
|
|
"color": 8311585,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-29 13:51:43 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
},
|
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
|
|
|
}
|
|
|
|
}
|