Skip to content

Commit

Permalink
fix(bot): team-wide penalties
Browse files Browse the repository at this point in the history
  • Loading branch information
shayypy committed Nov 10, 2024
1 parent 619192e commit 1053631
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/bot/src/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,11 @@ export const getHtPenaltyEmbed = (
.setColor(getTeamColor(league, team.id))
.setDescription(
[
`**${htPlayerName(penalty.player_penalized_info, utils)} (${
penalty.lang_penalty_description
})**`,
penalty.player_penalized_info?.player_id === undefined
? `**${penalty.lang_penalty_description}**`
: `**${htPlayerName(penalty.player_penalized_info, utils)} (${
penalty.lang_penalty_description
})**`,
penalty.player_penalized_info.player_id !==
penalty.player_served_info.player_id
? `Served by ${htPlayerName(penalty.player_served_info, utils)}`
Expand Down

0 comments on commit 1053631

Please sign in to comment.