From adf60ce7441d55880d43baad04c96753e3f92336 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 22 Sep 2017 17:42:01 +0000 Subject: [PATCH] Coolness Command --- commands/random/coolness.js | 22 ++++++++++++++++++++++ package.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 commands/random/coolness.js diff --git a/commands/random/coolness.js b/commands/random/coolness.js new file mode 100644 index 00000000..0702532c --- /dev/null +++ b/commands/random/coolness.js @@ -0,0 +1,22 @@ +const Command = require('../../structures/Command'); + +module.exports = class CoolnessCommand extends Command { + constructor(client) { + super(client, { + name: 'coolness', + group: 'random', + memberName: 'coolness', + description: 'Determines your coolness.' + }); + } + + run(msg) { + 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.'); + } +}; diff --git a/package.json b/package.json index fbba20d1..e86527a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "41.4.2", + "version": "41.5.0", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {