mobile update
This commit is contained in:
+10
-3
@@ -20,8 +20,15 @@ module.exports = {
|
||||
const member = await getMember(client, timer.assignedUser);
|
||||
if (!member) return;
|
||||
|
||||
await member.send(
|
||||
`⚠️ Less than 24 hours remaining for: **${timer.topic}**`
|
||||
).catch(() => {});
|
||||
console.log(`⚠️ Less than 24 hours remaining for ${member.user.username}, notifying...`)
|
||||
|
||||
try {
|
||||
await member.send(
|
||||
`⚠️ Less than 24 hours remaining for: **${timer.topic}**`
|
||||
)
|
||||
console.log('notified successfully!')
|
||||
} catch (e) {
|
||||
console.error(`notification failed, errorr ${e}`)
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user