better april fools

This commit is contained in:
Brandon Thomas committed 2021-04-01 13:22:54 -04:00
1 parent 5f6149dc21
commit 4a5afa47a9
1 file changed
+25 -1
+25 -1
View File
@@ -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 {