From ffa70d6762f4f6725691dd08ce62f646be0cb792 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 20 Oct 2019 21:53:36 -0400 Subject: [PATCH] Raised cap to 8 sponsors. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8210489..c43491b 100644 --- a/index.js +++ b/index.js @@ -753,8 +753,8 @@ function getVoteOrganisedSponsorTimes(sponsorTimes, votes, UUIDs) { } //if there are too many indexes, find the best 4 - if (finalSponsorTimeIndexes.length > 4) { - finalSponsorTimeIndexes = getWeightedRandomChoice(finalSponsorTimeIndexes, votes, 4).finalChoices; + if (finalSponsorTimeIndexes.length > 8) { + finalSponsorTimeIndexes = getWeightedRandomChoice(finalSponsorTimeIndexes, votes, 8).finalChoices; } //convert this to a final array to return