2021-01-19 14:02:09 -06:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
name: "bonk",
|
|
|
|
description: "Bonks an user!",
|
|
|
|
execute(client, message, args) {
|
2021-01-19 17:29:39 -06:00
|
|
|
const taggedUser = message.mentions.users.first();
|
2022-03-21 12:55:29 -05:00
|
|
|
const {footerTxt} = require('../config.json');
|
2021-01-30 23:48:07 -06:00
|
|
|
const errorembed = {
|
2021-02-25 01:03:33 -06:00
|
|
|
"title": "<:AnitroxError:809651936563429416> Error",
|
2021-01-30 23:48:07 -06:00
|
|
|
"color": 13632027,
|
|
|
|
"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-19 17:29:39 -06:00
|
|
|
const embed = {
|
|
|
|
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
2022-03-21 12:55:29 -05:00
|
|
|
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
|
2021-02-06 12:15:55 -06:00
|
|
|
"color": 9442302,
|
2021-01-19 17:29:39 -06:00
|
|
|
"footer": {
|
2022-03-21 12:55:29 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
2021-01-19 17:29:39 -06:00
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
|
|
|
|
}
|
|
|
|
}
|
2021-01-23 01:08:05 -06:00
|
|
|
|
|
|
|
|
|
|
|
message.channel.send({ embed: embed });
|
2021-01-19 17:29:39 -06:00
|
|
|
}
|
|
|
|
}
|