gave birthday a notified status to only notify once a day

This commit is contained in:
2026-06-12 21:44:52 +02:00
parent a94562c40b
commit 8d7e47af3f
2 changed files with 38 additions and 4 deletions
+13
View File
@@ -101,5 +101,18 @@ module.exports = {
description: 'a birthday banner'
}]
});
// mark as notified
const bdayColl = db.collection('items_birthdays')
await bdayColl.findOneAndUpdate({
userID: member.user.id
}, {
$set: {
notified: true
}
},{
upsert: true
})
}
};