From 27b1d0f12ae9d5455d8062ebea90cbe34cbae083 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 10 Apr 2018 13:51:39 +0000 Subject: [PATCH] Is It Christmas? and some aliases --- README.md | 3 ++- commands/events/is-it-christmas.js | 20 ++++++++++++++++++++ commands/events/neko-atsume-password.js | 1 + package.json | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 commands/events/is-it-christmas.js diff --git a/README.md b/README.md index f9e9b478..e15a2bd1 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/commands/events/is-it-christmas.js b/commands/events/is-it-christmas.js new file mode 100644 index 00000000..4cfe88ef --- /dev/null +++ b/commands/events/is-it-christmas.js @@ -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...'); + } +}; diff --git a/commands/events/neko-atsume-password.js b/commands/events/neko-atsume-password.js index 5fac829d..cddd38e8 100644 --- a/commands/events/neko-atsume-password.js +++ b/commands/events/neko-atsume-password.js @@ -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.', diff --git a/package.json b/package.json index af5193a9..388bc674 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "71.0.2", + "version": "71.1.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {