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

30 lines
946 B
JavaScript
Raw Normal View History

const avatar = require('./avatar');
2021-01-19 14:02:09 -06:00
module.exports = {
name: require('path').parse(__filename).name,
description: "Bonks a user!",
2022-03-29 13:51:43 -05:00
async execute(client, message, _, config) {
const taggedUser = message.mentions.users.first();
const avatarURL = message.author.displayAvatarURL();
if(!taggedUser) {
await message.channel.send(client.generateErrorMessage("You need to @mention a user!", avatarURL));
} else {
await message.channel.send({embeds: [{
"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": avatarURL,
2022-03-29 13:51:43 -05:00
"text": config.footerTxt
},
"image": {
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
}
}]});
}
}
}