Files
xiao/commands/response/motivate.js
T
Daniel Odendahl Jr e2a4a92990 args and more
2017-03-25 04:16:27 +00:00

32 lines
1.0 KiB
JavaScript

const commando = require('discord.js-commando');
module.exports = class MotivateCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'motivate',
aliases: [
'encourage',
'justdoit'
],
group: 'response',
memberName: 'motivate',
description: 'Motivates someone. (;motivate @User)',
examples: [';motivate @User'],
args: [{
key: 'thing',
prompt: 'What do you want to motivate?',
type: 'string'
}]
});
}
run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let userToMotivate = args.thing || message.author;
return message.channel.send(`${userToMotivate}, https://www.youtube.com/watch?v=ZXsQAXx_ao0`);
}
};