diff --git a/README.md b/README.md index 9833523d..bdbee794 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/commands/events/is-tuesday.js b/commands/events/is-tuesday.js new file mode 100644 index 00000000..c5eaff2e --- /dev/null +++ b/commands/events/is-tuesday.js @@ -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.`); + } +}; diff --git a/package.json b/package.json index e355abdc..72c9c612 100644 --- a/package.json +++ b/package.json @@ -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",