mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Is It Christmas? and some aliases
This commit is contained in:
@@ -8,7 +8,7 @@ Xiao is a Discord bot coded in JavaScript with
|
|||||||
300 commands, she is one of the most feature-filled bots out there, and formerly
|
300 commands, she is one of the most feature-filled bots out there, and formerly
|
||||||
served over 10,000 servers with a uniquely devoted fanbase.
|
served over 10,000 servers with a uniquely devoted fanbase.
|
||||||
|
|
||||||
## Commands (301)
|
## Commands (302)
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
* **prefix**: Shows or sets the command prefix.
|
* **prefix**: Shows or sets the command prefix.
|
||||||
@@ -110,6 +110,7 @@ served over 10,000 servers with a uniquely devoted fanbase.
|
|||||||
* **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.
|
||||||
* **holidays**: Responds with today's holidays.
|
* **holidays**: Responds with today's holidays.
|
||||||
* **horoscope**: Responds with today's horoscope for a specific Zodiac sign.
|
* **horoscope**: Responds with today's horoscope for a specific Zodiac sign.
|
||||||
|
* **is-it-christmas**: Responds with whether or not it's Christmas.
|
||||||
* **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,20 @@
|
|||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
|
||||||
|
module.exports = class IsItChristmasCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'is-it-christmas',
|
||||||
|
group: 'events',
|
||||||
|
memberName: 'is-it-christmas',
|
||||||
|
description: 'Responds with whether or not it\'s Christmas.'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
run(msg) {
|
||||||
|
const today = new Date();
|
||||||
|
if (today.getMonth() === 11 && today.getDate() === 25) {
|
||||||
|
return msg.reply('YES!!!', { files: ['https://i.imgur.com/B1fyMlc.jpg'] });
|
||||||
|
}
|
||||||
|
return msg.reply('No, not yet...');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -9,6 +9,7 @@ module.exports = class NekoAtsumePasswordCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'neko-atsume-password',
|
name: 'neko-atsume-password',
|
||||||
|
aliases: ['neko-atsume', 'neko-password', 'neko-atsume-pswd', 'neko-pswd'],
|
||||||
group: 'events',
|
group: 'events',
|
||||||
memberName: 'neko-atsume-password',
|
memberName: 'neko-atsume-password',
|
||||||
description: 'Responds with today\'s Neko Atsume password.',
|
description: 'Responds with today\'s Neko Atsume password.',
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "71.0.2",
|
"version": "71.1.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user