@Horyzon currently the code only supports a date mask
yyyy-mm-dd
that is done by this section of code
complimentArray () {
const hour = moment().hour();
const date = moment().format("YYYY-MM-DD");
let compliments = [];
.
.
.
// Add compliments for special days
for (let entry in this.config.compliments) {
if (new RegExp(entry).test(date)) {
Array.prototype.push.apply(compliments, this.config.compliments[entry]);
}
}
return compliments;
},
it gets the date/time NOW
and prints it YYYY-MM-DD
2024-04-19
and in the later code checks the selector field of the compliment entry to match that
. means any character.
to do what you want the selector would need a different format, crontab like
* 18-20 * * 4-6
which is (* means any)
any minute
hours 18-20
any day
any month
4-6 days of the week
so one could envision printing that layout
and building a regular expression to test it
see https://stackoverflow.com/questions/14203122/create-a-regular-expression-for-cron-statement/57639657#57639657
and adding those 2 or 3 lines of code to the module function