2022-03-26 03:33:18 -05:00
|
|
|
const gifchoices = [
|
|
|
|
"https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif",
|
|
|
|
"https://i.imgur.com/H7Ok5tn.gif",
|
|
|
|
"https://media1.tenor.com/images/8fe23ec8e2c5e44964e5c11983ff6f41/tenor.gif?itemid=5600215"
|
|
|
|
];
|
2021-01-19 17:29:39 -06:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
module.exports = {
|
2021-01-26 14:03:02 -06:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
name: "poke",
|
2022-03-26 12:31:03 -05:00
|
|
|
description: "Pokes a 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": "👉 Poke!",
|
2022-03-26 13:20:32 -05:00
|
|
|
"description": `${taggedUser} You have been poked 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
|
|
|
}});
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|