This commit is contained in:
Daniel Odendahl Jr
2017-09-22 17:47:38 +00:00
parent adf60ce744
commit 54ab5d9a42
+18 -8
View File
@@ -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.`);
}
};