mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
debug:bday
This commit is contained in:
parent
9da8480ed6
commit
4fe1a17b21
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ export async function cronFunc(app: ModifiedApp) {
|
|||
const today = new Date();
|
||||
for (const [user, bday] of Object.entries(app.dbs.bday.JSON())) {
|
||||
const date = new Date(bday);
|
||||
console.debug(`bday: ${user}`, `${today.getDate()} == ${date.getDate()}`, `${today.getMonth()} == ${date.getMonth()}`);
|
||||
if (
|
||||
date.getDate() == today.getDate() &&
|
||||
date.getMonth() == today.getMonth()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue