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
+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.',