gave birthday a notified status to only notify once a day
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user