Files
xiao/commands/roleplay/cuddle.js
T
2017-03-15 20:59:46 -04:00

25 lines
891 B
JavaScript

const commando = require('discord.js-commando');
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, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
let username = message.content.split(" ").slice(1).join(" ");
message.channel.send(message.author + ' *cuddles* ' + username);
}
}
module.exports = CuddleCommand;