Add the greatest module in existence

This commit is contained in:
Daniel Odendahl Jr
2018-10-01 17:27:11 +00:00
parent b16a6940a8
commit fe128a9831
3 changed files with 22 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 (321)
## Commands (322)
### Utility:
* **eval:** Executes JavaScript code.
@@ -115,6 +115,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **google-doodle:** Responds with a Google Doodle, either the latest one or a random one from the past.
* **horoscope:** Responds with today's horoscope for a specific Zodiac sign.
* **humble-bundle:** Responds with the current Humble Bundle.
* **is-tuesday:** Determines if today is Tuesday.
* **neko-atsume-password:** Responds with today's Neko Atsume password.
* **time:** Responds with the current time in a particular location.
* **today-in-history:** Responds with an event that occurred today in history.
+18
View File
@@ -0,0 +1,18 @@
const Command = require('../../structures/Command');
const isTuesday = require('is-tuesday');
module.exports = class IsTuesdayCommand extends Command {
constructor(client) {
super(client, {
name: 'is-tuesday',
aliases: ['is-it-tuesday', 'tuesday'],
group: 'events',
memberName: 'is-tuesday',
description: 'Determines if today is Tuesday.'
});
}
run(msg) {
return msg.say(`Today is${isTuesday() ? '' : ' **not**'} Tuesday.`);
}
};
+2 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "91.14.3",
"version": "91.15.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {
@@ -41,6 +41,7 @@
"discord.js-commando": "github:discordjs/Commando",
"dotenv": "^6.0.0",
"erlpack": "github:discordapp/erlpack",
"is-tuesday": "^1.0.0",
"mathjs": "^5.1.2",
"moment": "^2.22.2",
"moment-duration-format": "^2.2.2",