Skip to content

Commit

Permalink
Fix issue with CL notifications - Completion placement counter (#5760)
Browse files Browse the repository at this point in the history
  • Loading branch information
themrrobert authored Mar 8, 2024
1 parent 36954f4 commit f315583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const BOT_TYPE: 'BSO' | 'OSB' = 'OSB' as 'BSO' | 'OSB';

export const Channel = {
General: DISCORD_SETTINGS.Channels?.General ?? '342983479501389826',
Notifications: production ? '469523207691436042' : '1042760447830536212',
Notifications:
DISCORD_SETTINGS.Channels?.Notifications ?? (production ? '469523207691436042' : '1042760447830536212'),
GrandExchange: DISCORD_SETTINGS.Channels?.GrandExchange ?? '682996313209831435',
Developers: DISCORD_SETTINGS.Channels?.Developers ?? '648196527294251020',
BlacklistLogs: DISCORD_SETTINGS.Channels?.BlacklistLogs ?? '782459317218967602',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/handleNewCLItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export async function handleNewCLItems({
resultLimit: 100_000,
method: 'raw_cl'
})
).length;
).filter(u => u.qty === finishedCL.items.length).length;

const placeStr = nthUser > 100 ? '' : ` They are the ${formatOrdinal(nthUser)} user to finish this CL.`;

Expand Down

0 comments on commit f315583

Please sign in to comment.