Files
xiao/commands/roleplay/hitwithshovel.js
T
2017-03-21 19:20:47 +00:00

22 lines
861 B
JavaScript

const commando = require('discord.js-commando');
module.exports = class HitwithShovelCommand extends commando.Command {
constructor(Client){
super(Client, {
name: 'hitwithshovel',
group: 'roleplay',
memberName: 'hitwithsovel',
description: 'Hits someone with a shovel. (;hitwithshovel @User)',
examples: [';hitwithshovel @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(" ");
message.channel.send(message.author + ' *hits* ' + thingToRoleplay + ' *with a shovel* ');
}
};