Skip to content

Commit

Permalink
feat: add fixed checkpoints to judge embed (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian authored May 17, 2024
1 parent f74a6a9 commit 3d8771e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/sendJudgeMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const sendJudgeMessage = async ({
isUnderCheckpointLimit,
isUnderTimeLimit,
isStartFinishProximityValid,
startFinishProximity
startFinishProximity,
areFixedCheckpointsValid
} = level.validity
const title = `${isNew ? '🆕 ' : ''}${level.name}`

Expand Down Expand Up @@ -92,6 +93,16 @@ export const sendJudgeMessage = async ({
])
}

if (!areFixedCheckpointsValid) {
embed.addFields([
{
name: 'Fixed Checkpoints',
value: `${emoji(areFixedCheckpointsValid)} Checkpoints are not in the correct positions`,
inline: true
}
])
}

embed.addFields({
name: 'Authors',
value: level.levelAuthors,
Expand Down

0 comments on commit 3d8771e

Please sign in to comment.