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
928 B
JavaScript
Raw Normal View History

2021-01-19 14:02:09 -06:00
module.exports = {
name: require('path').parse(__filename).name,
description: 'Bonks a user!',
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',
description: `${taggedUser} You have been bonked by ${message.author}!`,
color: 9442302,
footer: {
icon_url: avatarURL,
text: config.footerTxt
},
image: {
url: 'https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif'
}
}]
});
}
}
};