mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
21 lines
538 B
JavaScript
21 lines
538 B
JavaScript
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...');
|
|
}
|
|
};
|