mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
IQ Command
This commit is contained in:
@@ -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
|
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).
|
on the [home server](https://discord.gg/sbMe32W).
|
||||||
|
|
||||||
## Commands (299)
|
## Commands (300)
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
* **eval**: Executes JavaScript code.
|
* **eval**: Executes JavaScript code.
|
||||||
@@ -180,6 +180,7 @@ on the [home server](https://discord.gg/sbMe32W).
|
|||||||
* **dick**: Determines your dick size.
|
* **dick**: Determines your dick size.
|
||||||
* **gender-analyze**: Determines the gender of a name.
|
* **gender-analyze**: Determines the gender of a name.
|
||||||
* **guess-looks**: Guesses what a user looks like.
|
* **guess-looks**: Guesses what a user looks like.
|
||||||
|
* **iq**: Determines a user's IQ.
|
||||||
* **psycho-pass**: Determines your Crime Coefficient.
|
* **psycho-pass**: Determines your Crime Coefficient.
|
||||||
* **read-qr-code**: Reads a QR Code.
|
* **read-qr-code**: Reads a QR Code.
|
||||||
* **severe-toxicity**: Determines the toxicity of text, but less sensitive to milder language.
|
* **severe-toxicity**: Determines the toxicity of text, but less sensitive to milder language.
|
||||||
|
|||||||
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "90.1.1",
|
"version": "90.2.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user