mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
20 lines
615 B
JavaScript
20 lines
615 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class FridayThe13thCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'friday-the-13th',
|
|
aliases: ['friday-13th', 'friday-13', 'friday-the-13', 'friday-the-thirteenth', 'friday-thirteenth'],
|
|
group: 'events',
|
|
memberName: 'friday-the-13th',
|
|
description: 'Determines if today is Friday the 13th.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const today = new Date();
|
|
const isFridaythe13th = today.getDay() === 5 && today.getDate() === 13;
|
|
return msg.say(`Today **is${isFridaythe13th ? '' : ' not'}** Friday the 13th.`);
|
|
}
|
|
};
|