const commando = require('discord.js-commando'); class FistBumpCommand extends commando.Command { constructor(Client){ super(Client, { name: 'fistbump', group: 'roleplay', memberName: 'fistbump', description: 'Fistbumps someone. (;fistbump @User)', examples: [';fistbump @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.sendMessage(message.author + ' *fistbumps* ' + username + ' *badalalala* '); } } module.exports = FistBumpCommand;