mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
const Command = require('../../framework/Command');
|
|
|
|
module.exports = class IsTuesdayCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'is-tuesday',
|
|
aliases: ['is-it-tuesday', 'tuesday'],
|
|
group: 'events',
|
|
description: 'Determines if today is Tuesday.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(`Today **is${new Date().getDay() === 2 ? '' : ' not'}** Tuesday.`);
|
|
}
|
|
};
|