mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Add the greatest module in existence
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
|
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).
|
on the [home server](https://discord.gg/sbMe32W).
|
||||||
|
|
||||||
## Commands (321)
|
## Commands (322)
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
* **eval:** Executes JavaScript code.
|
* **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.
|
* **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.
|
* **horoscope:** Responds with today's horoscope for a specific Zodiac sign.
|
||||||
* **humble-bundle:** Responds with the current Humble Bundle.
|
* **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.
|
* **neko-atsume-password:** Responds with today's Neko Atsume password.
|
||||||
* **time:** Responds with the current time in a particular location.
|
* **time:** Responds with the current time in a particular location.
|
||||||
* **today-in-history:** Responds with an event that occurred today in history.
|
* **today-in-history:** Responds with an event that occurred today in history.
|
||||||
|
|||||||
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "91.14.3",
|
"version": "91.15.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
"discord.js-commando": "github:discordjs/Commando",
|
"discord.js-commando": "github:discordjs/Commando",
|
||||||
"dotenv": "^6.0.0",
|
"dotenv": "^6.0.0",
|
||||||
"erlpack": "github:discordapp/erlpack",
|
"erlpack": "github:discordapp/erlpack",
|
||||||
|
"is-tuesday": "^1.0.0",
|
||||||
"mathjs": "^5.1.2",
|
"mathjs": "^5.1.2",
|
||||||
"moment": "^2.22.2",
|
"moment": "^2.22.2",
|
||||||
"moment-duration-format": "^2.2.2",
|
"moment-duration-format": "^2.2.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user