mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Chinese Zodiac 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
|
||||
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.
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"Monkey",
|
||||
"Rooster",
|
||||
"Dog",
|
||||
"Pig",
|
||||
"Rat",
|
||||
"Ox",
|
||||
"Tiger",
|
||||
"Rabbit",
|
||||
"Dragon",
|
||||
"Snake",
|
||||
"Horse",
|
||||
"Goat"
|
||||
]
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "90.6.0",
|
||||
"version": "90.7.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user