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

27 lines
875 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class FistBumpCommand extends Command {
constructor(client) {
super(client, {
name: 'fistbump',
group: 'roleplay',
memberName: 'fistbump',
description: 'Fistbumps someone. (x;fistbump @User)',
examples: ['x;fistbump @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} *fist-bumps* ${thing} *badalalala*`);
}
};