mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
32 lines
1018 B
JavaScript
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`);
|
|
}
|
|
};
|