diff --git a/README.md b/README.md index 0d8608cb..3378d78f 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,7 @@ the [home server](https://discord.gg/sbMe32W). ### Analyzers: +* **age:** Responds with how old someone born in a certain year is. * **butt:** Determines a user's butt quality. * **chinese-zodiac:** Responds with the Chinese Zodiac Sign for the given year. * **coolness:** Determines a user's coolness. @@ -231,6 +232,7 @@ the [home server](https://discord.gg/sbMe32W). * **iq:** Determines a user's IQ. * **psycho-pass:** Determines your Crime Coefficient. * **read-qr-code:** Reads a QR Code. +* **scrabble-score:** Responds with the scrabble score of a word. * **severe-toxicity:** Determines the toxicity of text, but less sensitive to milder language. * **ship:** Ships two users together. * **spoopy-link:** Determines if a link is spoopy or not. @@ -395,7 +397,6 @@ the [home server](https://discord.gg/sbMe32W). * **prime:** Determines if a number is a prime number. * **roman-numeral:** Converts a number to roman numerals. * **scientific-notation:** Converts a number to scientific notation. -* **scrabble-score:** Responds with the scrabble score of a word. * **units:** Converts units to/from other units. ### Other: diff --git a/commands/analyze/age.js b/commands/analyze/age.js new file mode 100644 index 00000000..d4796da4 --- /dev/null +++ b/commands/analyze/age.js @@ -0,0 +1,25 @@ +const Command = require('../../structures/Command'); + +module.exports = class AgeCommand extends Command { + constructor(client) { + super(client, { + name: 'age', + group: 'analyze', + memberName: 'age', + description: 'Responds with how old someone born in a certain year is.', + args: [ + { + key: 'year', + prompt: 'What year would you like to get the age for?', + type: 'integer', + min: 1 + } + ] + }); + } + + run(msg, { year }) { + const currentYear = new Date().getYear(); + return msg.say(`Someone born in ${year} would be ${currentYear - year} years old.`); + } +}; diff --git a/commands/number-edit/scrabble-score.js b/commands/analyze/scrabble-score.js similarity index 96% rename from commands/number-edit/scrabble-score.js rename to commands/analyze/scrabble-score.js index 334022a1..e0f2df64 100644 --- a/commands/number-edit/scrabble-score.js +++ b/commands/analyze/scrabble-score.js @@ -7,7 +7,7 @@ module.exports = class ScrabbleScoreCommand extends Command { super(client, { name: 'scrabble-score', aliases: ['scrabble'], - group: 'number-edit', + group: 'analyze', memberName: 'scrabble-score', description: 'Responds with the scrabble score of a word.', args: [ diff --git a/package.json b/package.json index c3e52e02..a275c437 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "96.0.0", + "version": "96.1.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {