Is It Christmas? and some aliases

This commit is contained in:
Daniel Odendahl Jr
2018-04-10 13:51:39 +00:00
parent 6072c115c2
commit 27b1d0f12a
4 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -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.
+20
View File
@@ -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...');
}
};
+1
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "71.0.2",
"version": "71.1.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {