From 7f36d17904ea8db8827d0db069f15a42b0df0aea Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:09:54 -0500 Subject: [PATCH] feat: add rocket speed to streaming speeds --- utils/slack.ts | 2 +- utils/streaming.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/slack.ts b/utils/slack.ts index b9d399d..4360014 100644 --- a/utils/slack.ts +++ b/utils/slack.ts @@ -92,7 +92,7 @@ export async function get10DaysLeaderboard(start: Date, end: Date) { }); // display the leaderboard in markdown format - const leaderboardFormatted = `# 10 Days in Public Leaderboard from ${start.toISOString().split("T")[0]} to ${end.toISOString().split("T")[0]}\nGood Luck and have fun!\n\n${generateLeaderboardTable(users)}`; + const leaderboardFormatted = `# 10 Days in Public Leaderboard from ${start.toISOString().split("T")[0]} to ${end.toISOString().split("T")[0]}\nGood Luck and have fun!🚀\n\n${generateLeaderboardTable(users)}`; return leaderboardFormatted; } diff --git a/utils/streaming.ts b/utils/streaming.ts index ca223cb..22aa3c4 100644 --- a/utils/streaming.ts +++ b/utils/streaming.ts @@ -37,6 +37,8 @@ export function streamData(req: Request, res: Response, message: string) { speed = 55; } else if (char === "🐇") { speed = 5; + } else if (char === "🚀") { + speed = 1; } else { setTimeout( () => {