From 4a5afa47a9f8b8a2ba8b478cf6c0ce33286da53a Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Apr 2021 13:22:54 -0400 Subject: [PATCH] better april fools --- vocodes/src/model/Speakers.ts | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/vocodes/src/model/Speakers.ts b/vocodes/src/model/Speakers.ts index 9043401916..5f6f94dbe6 100644 --- a/vocodes/src/model/Speakers.ts +++ b/vocodes/src/model/Speakers.ts @@ -835,6 +835,8 @@ SPEAKER_CATEGORIES.forEach(category => { SPEAKERS_BY_CATEGORY.set(category, []); }); +let i = 0; + SPEAKERS.forEach(speaker => { speaker.getCategories().forEach((category: SpeakerCategory) => { let categoryList = SPEAKERS_BY_CATEGORY.get(category); @@ -846,9 +848,31 @@ SPEAKERS.forEach(speaker => { // TODO(bt): April fools speaker.slug = "goku"; - //speaker.name = "Goku"; + speaker.name = "Goku"; speaker.avatarUrl = "goku.webp"; speaker.fullUrl = "goku-full.png"; + + i += 1; + + if (i % 5 == 0) { + speaker.name = "Other Goku"; + } else if (i % 3 == 0) { + speaker.name = "GOKU"; + } else if (i % 6 == 0) { + speaker.name = "GoKu"; + } + + if (i % 7 == 0) { + speaker.name = "Different Goku"; + } else if (i % 20 == 0) { + speaker.name = "More Different Goku"; + } + + if (i % 11 == 0) { + speaker.name = "Did somebody say Goku?"; + } + + }); export {