Files
xiao/commands/roleplay/highfive.js
T
2017-04-20 13:48:12 +00:00

27 lines
864 B
JavaScript

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