Chinese Zodiac Command

This commit is contained in:
Dragon Fire
2018-09-08 22:51:48 -04:00
parent 20bcaab8fc
commit 41f721c954
4 changed files with 43 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 (304)
## Commands (305)
### Utility:
* **eval:** Executes JavaScript code.
@@ -178,6 +178,7 @@ on the [home server](https://discord.gg/sbMe32W).
### Analyzers:
* **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.
* **dick:** Determines your dick size.
* **gender-analyze:** Determines the gender of a name.
+14
View File
@@ -0,0 +1,14 @@
[
"Monkey",
"Rooster",
"Dog",
"Pig",
"Rat",
"Ox",
"Tiger",
"Rabbit",
"Dragon",
"Snake",
"Horse",
"Goat"
]
+26
View File
@@ -0,0 +1,26 @@
const Command = require('../../structures/Command');
const signs = require('../../assets/json/chinese-zodiac');
module.exports = class ChineseZodiacCommand extends Command {
constructor(client) {
super(client, {
name: 'chinese-zodiac',
aliases: ['chinese-zodiac-sign'],
group: 'analyze',
memberName: 'chinese-zodiac',
description: 'Responds with the Chinese Zodiac Sign for the given year.',
args: [
{
key: 'year',
prompt: 'What year would you like to get the Chinese Zodiac Sign for?',
type: 'integer',
min: 1
}
]
});
}
run(msg, { year }) {
return msg.say(`The Chinese Zodiac Sign for ${year} is ${signs[year % signs.length]}.`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "90.6.0",
"version": "90.7.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {