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

27 lines
835 B
JavaScript

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