mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Another Rewrite Type Thing
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user