This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
anitrox/commands/bonk.js

26 lines
858 B
JavaScript
Raw Normal View History

2021-01-19 14:02:09 -06:00
module.exports = {
name: "bonk",
description: "Bonks a user!",
2022-03-29 13:51:43 -05:00
async execute(client, message, _, config) {
const taggedUser = message.mentions.users.first();
if(!taggedUser) {
await message.channel.send(client.generateErrorMessage("You need to @mention a user!", message.author.displayAvatarURL()));
} else {
await message.channel.send({embed: {
"title": "<a:SylvBonk:801185845847130113> Bonk",
2022-03-26 13:20:32 -05:00
"description": `${taggedUser} You have been bonked by ${message.author}!`,
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
2022-03-29 13:51:43 -05:00
"text": config.footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
}
}});
}
}
}