Files
xiao/commands/roleplay/hug.js
T
2017-04-08 03:35:45 +00:00

27 lines
852 B
JavaScript

const commando = require('discord.js-commando');
module.exports = class HugCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'hug',
group: 'roleplay',
memberName: 'hug',
description: 'Hugs someone. (;hug @User)',
examples: [';hug @User'],
args: [{
key: 'thing',
prompt: 'What do you want to roleplay with?',
type: 'string'
}]
});
}
run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
const thingToRoleplay = args.thing;
return message.say(`${message.author} *hugs* ${thingToRoleplay}`);
}
};