mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +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
|
||||
served over 10,000 servers with a uniquely devoted fanbase.
|
||||
|
||||
## Commands (301)
|
||||
## Commands (302)
|
||||
### Utility:
|
||||
|
||||
* **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.
|
||||
* **holidays**: Responds with today's holidays.
|
||||
* **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.
|
||||
* **time**: Responds with the current time in a particular location.
|
||||
* **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) {
|
||||
super(client, {
|
||||
name: 'neko-atsume-password',
|
||||
aliases: ['neko-atsume', 'neko-password', 'neko-atsume-pswd', 'neko-pswd'],
|
||||
group: 'events',
|
||||
memberName: 'neko-atsume-password',
|
||||
description: 'Responds with today\'s Neko Atsume password.',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "71.0.2",
|
||||
"version": "71.1.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user