Files
xiao/commands/random/motivate.js
T
2017-04-11 18:52:18 +00:00

32 lines
1018 B
JavaScript

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