mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
22.0.0
This commit is contained in:
@@ -7,20 +7,21 @@ module.exports = class ComplimentCommand extends Command {
|
||||
name: 'compliment',
|
||||
group: 'response',
|
||||
memberName: 'compliment',
|
||||
description: 'Compliments something/someone.',
|
||||
description: 'Compliments a user.',
|
||||
args: [
|
||||
{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to compliment?',
|
||||
type: 'string'
|
||||
key: 'user',
|
||||
prompt: 'What user do you want to compliment?',
|
||||
type: 'user',
|
||||
default: ''
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { thing } = args;
|
||||
const user = args.user || msg.author;
|
||||
const compliment = compliments[Math.floor(Math.random() * compliments.length)];
|
||||
return msg.say(`${thing}, ${compliment}`);
|
||||
return msg.say(`${user}, ${compliment}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user