2022-03-26 03:33:18 -05:00
|
|
|
const { MessageEmbed } = require("discord.js");
|
|
|
|
|
|
|
|
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",
|
|
|
|
description: "Pokes 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) {
|
|
|
|
await message.channel.send(new MessageEmbed({
|
2021-02-25 01:03:33 -06:00
|
|
|
"title": "<:AnitroxError:809651936563429416> Error",
|
2021-02-06 12:15:55 -06:00
|
|
|
"color": 9442302,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer,
|
2021-01-30 23:48:07 -06:00
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "Well that happened...",
|
|
|
|
"value": "You need to @mention an user!"
|
|
|
|
}
|
|
|
|
]
|
2022-03-26 03:33:18 -05:00
|
|
|
}));
|
|
|
|
} else {
|
|
|
|
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
|
|
|
await message.channel.send(new MessageEmbed({
|
|
|
|
"title": "👉 Poke!",
|
|
|
|
"description": "<@" + taggedUser + "> You have been poked by <@" + message.author + ">!",
|
|
|
|
"color": 8311585,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer,
|
2022-03-26 03:33:18 -05:00
|
|
|
"image": {
|
|
|
|
"url": gif
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|