Skip to content
Snippets Groups Projects
Commit 10a10c5e authored by Reviath's avatar Reviath
Browse files

Added hug command.

parent 88ec170c
Branches
Tags
No related merge requests found
const Discord = require('discord.js');
const errors = require('../errors.json');
exports.run = async (client, message, args) => {
const user = message.mentions.users.first() || message.guild.members.cache.get(args[0]);
if (!user) {
message.channel.send(errors.insufficient_args).catch(e => {
return;
});
return;
};
const embed = new Discord.MessageEmbed()
.setColor(0xff0000)
.setDescription(`${message.author} hugs <@!${user.id}>`)
.setImage('https://cdn.discordapp.com/attachments/782955123974078474/783056366486814720/5EbKYsHrUz.gif')
message.channel.send(embed).catch(e => {
message.channel.send(errors.cannot_send_embed).catch(e => {
return;
});
return;
});
};
module.exports.help = {
name: 'hug',
aliases: []
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment