Final for lick.js
This commit is contained in:
parent
73f62ff32d
commit
b02fe66a64
1 changed files with 43 additions and 2 deletions
|
@ -1,6 +1,47 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
name: "lick",
|
name: "lick",
|
||||||
description: "Licks an user!",
|
description: "Licks an user!",
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
const messageAuthor = message.author
|
const messageAuthor = message.author
|
||||||
const taggedUser = message.mentions.users.first();
|
const taggedUser = message.mentions.users.first();
|
||||||
|
//---------------------------------------------------
|
||||||
|
|
||||||
|
//---------------------------------------------------
|
||||||
|
const errorembed = {
|
||||||
|
"title": "<:NyabotError:697145462347661412> Error",
|
||||||
|
"color": 13632027,
|
||||||
|
"footer": {
|
||||||
|
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||||
|
},
|
||||||
|
"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.
|
||||||
|
}
|
||||||
|
|
||||||
|
const embed = {
|
||||||
|
"title": "Lick",
|
||||||
|
"description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!",
|
||||||
|
"color": 8311585,
|
||||||
|
"footer": {
|
||||||
|
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in a new issue