Files
xiao/commands/roleplay/kiss.js
T
2017-04-11 18:52:18 +00:00

27 lines
845 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. (;kiss @User)',
examples: [';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 roleplayed = args.thing;
return message.say(`${message.author} *kisses* ${roleplayed}`);
}
};