diff --git a/src/lib/constants.ts b/src/lib/constants.ts index f8ed32230d..987db92565 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -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', diff --git a/src/lib/handleNewCLItems.ts b/src/lib/handleNewCLItems.ts index 04fc6fbc33..5e4d3244f1 100644 --- a/src/lib/handleNewCLItems.ts +++ b/src/lib/handleNewCLItems.ts @@ -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.`;