IQ Command

This commit is contained in:
Daniel Odendahl Jr
2018-09-05 23:51:02 +00:00
parent e8ff1af28c
commit 9c0f89b53e
3 changed files with 31 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with
The bot is no longer available for invite. You can self-host the bot, or use her
on the [home server](https://discord.gg/sbMe32W).
## Commands (299)
## Commands (300)
### Utility:
* **eval**: Executes JavaScript code.
@@ -180,6 +180,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **dick**: Determines your dick size.
* **gender-analyze**: Determines the gender of a name.
* **guess-looks**: Guesses what a user looks like.
* **iq**: Determines a user's IQ.
* **psycho-pass**: Determines your Crime Coefficient.
* **read-qr-code**: Reads a QR Code.
* **severe-toxicity**: Determines the toxicity of text, but less sensitive to milder language.
+28
View File
@@ -0,0 +1,28 @@
const Command = require('../../structures/Command');
const Random = require('random-js');
module.exports = class IQCommand extends Command {
constructor(client) {
super(client, {
name: 'iq',
aliases: ['intelligence-quotient'],
group: 'analyze',
memberName: 'iq',
description: 'Determines a user\'s IQ.',
args: [
{
key: 'user',
prompt: 'Which user do you want me to guess the IQ of?',
type: 'user',
default: msg => msg.author
}
]
});
}
run(msg, { user }) {
const random = new Random(Random.engines.mt19937().seed(user.id));
const score = random.integer(20, 170);
return msg.reply(`${user.id === msg.author.id ? 'Your' : `${user.username}'s`} IQ score is ${score}.`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "90.1.1",
"version": "90.2.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {