Skip to content

Conversation

TheShadowEevee
Copy link
Member

the thing ray wanted

not tested, test in prod

could never go wrong


const hackNightAttendanceThread = threads.threads
.filter((t) => {
return t.name.startsWith("");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches all threads, is this intentional? If so probably can remove this filter haha

Comment on lines +60 to +69
if (lastMessage) {
const timeSent = lastMessage.createdAt;

// If most recent message was sent more than 1.5 hours ago
if (
new Date().getTime() - timeSent.getTime() >
1.5 * 60 * 60 * 1000
) {
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code this does nothing

Comment on lines +71 to +74
hackNightAttendanceThread.send({
content: `<@&${HACK_NIGHT_ATTENDANCE_ROLE_ID}>: Last attendance taken (or attendance reminder) was more than an hour and a half ago!`,
});
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be awaited methinks

Comment on lines +44 to +46
.filter((t) => {
return t.name.startsWith("");
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous

Comment on lines +60 to +69
if (lastMessage) {
const timeSent = lastMessage.createdAt;

// If most recent message was sent more than 1.5 hours ago
if (
new Date().getTime() - timeSent.getTime() >
1.5 * 60 * 60 * 1000
) {
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous

Comment on lines +71 to +74
hackNightAttendanceThread.send({
content: `<@&${HACK_NIGHT_ATTENDANCE_ROLE_ID}>: Last attendance taken was more than an hour and a half ago!`,
});
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants