diff --git a/commands/random/coolness.js b/commands/random/coolness.js index 0702532c..479f9ae0 100644 --- a/commands/random/coolness.js +++ b/commands/random/coolness.js @@ -6,17 +6,27 @@ module.exports = class CoolnessCommand extends Command { name: 'coolness', group: 'random', memberName: 'coolness', - description: 'Determines your coolness.' + description: 'Determines your coolness.', + args: [ + { + key: 'user', + prompt: 'Which user do you want to determine the coolness of?', + type: 'user', + default: '' + } + ] }); } - run(msg) { + run(msg, { user }) { + if (!user) user = msg.author; const coolness = msg.author.id / this.client.user.id; - if (coolness < 0.3) return msg.reply('You are the coolest being to walk this Earth.'); - if (coolness < 0.5) return msg.reply('You are an extremely cool dude.'); - if (coolness < 0.8) return msg.reply('You\'re pretty sweet, not gonna lie.'); - if (coolness < 1) return msg.reply('You\'re okay, nothing special.'); - if (coolness < 1.3) return msg.say('You just aren\'t all that neat.'); - return msg.say('You suck, honestly.'); + const prefix = user.id === msg.author.id ? 'You\'re' : 'They\'re'; + if (coolness < 0.3) return msg.reply(`${prefix} the coolest being to walk this Earth.`); + if (coolness < 0.5) return msg.reply(`${prefix} an extremely cool dude.`); + if (coolness < 0.8) return msg.reply(`${prefix} pretty sweet, not gonna lie.`); + if (coolness < 1) return msg.reply(`${prefix} okay, nothing special.`); + if (coolness < 1.3) return msg.say(`${prefix} just not all that neat.`); + return msg.say(`${prefix} awful, honestly.`); } };