2021-01-19 18:00:32 -06:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
name: "slap",
|
|
|
|
description: "Slaps an user!",
|
|
|
|
execute(client, message, args) {
|
2022-03-21 12:55:29 -05:00
|
|
|
const {footerTxt} = require('../config.json');
|
2021-01-19 18:00:32 -06:00
|
|
|
const taggedUser = message.mentions.users.first();
|
2021-01-30 23:48:07 -06:00
|
|
|
//---------------------------------------------------
|
|
|
|
|
|
|
|
//---------------------------------------------------
|
|
|
|
const errorembed = {
|
2021-02-25 01:03:33 -06:00
|
|
|
"title": "<:AnitroxError:809651936563429416> Error",
|
2021-01-30 23:48:07 -06:00
|
|
|
"color": 13632027,
|
|
|
|
"footer": {
|
2022-03-21 12:55:29 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
2021-01-30 23:48:07 -06:00
|
|
|
},
|
|
|
|
"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 = {
|
2021-01-19 18:00:32 -06:00
|
|
|
"title": ":anger: Slap",
|
2021-01-23 01:08:05 -06:00
|
|
|
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
|
2021-02-06 12:15:55 -06:00
|
|
|
"color": 9442302,
|
2021-01-19 18:00:32 -06:00
|
|
|
"footer": {
|
2022-03-21 12:55:29 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
2021-01-19 18:00:32 -06:00
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
|
|
|
|
}
|
|
|
|
}
|
2021-01-23 01:08:05 -06:00
|
|
|
|
|
|
|
|
|
|
|
message.channel.send({ embed: embed });
|
2021-01-19 18:00:32 -06:00
|
|
|
}
|
|
|
|
}
|