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.
2022-03-26 03:33:18 -05:00
|
|
|
module.exports = {
|
2021-01-30 23:48:07 -06:00
|
|
|
|
2022-04-18 11:25:40 -05:00
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-21 18:09:21 -05:00
|
|
|
description: 'Slaps an user!',
|
|
|
|
|
|
|
|
async execute (client, message, _, config) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const taggedUser = message.mentions.users.first();
|
2022-04-21 12:24:12 -05:00
|
|
|
const avatarURL = message.author.displayAvatarURL();
|
2021-01-30 23:48:07 -06:00
|
|
|
|
2022-04-21 18:09:21 -05:00
|
|
|
if (!taggedUser) {
|
|
|
|
await message.channel.send(client.generateErrorMessage('You need to @mention a user!', avatarURL));
|
2022-03-26 03:33:18 -05:00
|
|
|
} else {
|
2022-04-21 18:09:21 -05:00
|
|
|
await message.channel.send({
|
|
|
|
embeds: [{
|
|
|
|
title: ':anger: Slap',
|
|
|
|
description: `${taggedUser} You have been slapped by ${message.author}!`,
|
|
|
|
color: 9442302,
|
|
|
|
footer: {
|
|
|
|
icon_url: avatarURL,
|
|
|
|
text: config.footerTxt
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
url: 'https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943'
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
}
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|