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

27 lines
890 B
JavaScript

const commando = require('discord.js-commando');
module.exports = class HighFivesCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'highfive',
group: 'roleplay',
memberName: 'highfive',
description: 'High Fives someone. (;highfive @User)',
examples: [';highfive @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} *high-fives* ${thingToRoleplay}`);
}
};