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

38 lines
1.3 KiB
JavaScript
Raw Normal View History

const { MessageEmbed } = require("discord.js");
2021-01-19 14:02:09 -06:00
module.exports = {
name: "bonk",
description: "Bonks a user!",
async execute(_0, message, _1, footer) {
const taggedUser = message.mentions.users.first();
if(!taggedUser) {
await message.channel.send(new MessageEmbed({
"title": "<:AnitroxError:809651936563429416> Error",
"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"
},
"fields": [
{
"name": "Well that happened...",
"value": "You need to @mention an user!"
}
]
}));
} else {
await message.channel.send(new MessageEmbed({
"title": "<a:SylvBonk:801185845847130113> Bonk",
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
"color": 9442302,
"footer": footer,
"image": {
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
}
}));
}
}
}