Files
xiao/commands/roleplay/cuddle.js
T
Daniel Odendahl Jr 268f8961b0 Let's try this
2017-03-23 11:56:18 +00:00

23 lines
808 B
JavaScript

const commando = require('discord.js-commando');
module.exports = class CuddleCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'cuddle',
group: 'roleplay',
memberName: 'cuddle',
description: 'Cuddles someone. (;cuddle @User)',
examples: [';cuddle @User']
});
}
async run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
return message.channel.send(`${message.author} *cuddles* ${thingToRoleplay}`);
}
};