This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+7 -6
View File
@@ -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}`);
}
};