From 7f6f2647457c17bcc99609036523634296cd1802 Mon Sep 17 00:00:00 2001 From: opti21 <40129778+opti21@users.noreply.github.com> Date: Fri, 13 May 2022 13:18:02 -0500 Subject: [PATCH] fix: change duration to const --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 85214ec..bc85c71 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,6 @@ twitch.connect().catch(console.error); let raffleOpen = false; let raffleSecondsLeft: number; - let raffleIntervalCheck: ReturnType; twitch.on("message", async (channel, tags, message, self) => { @@ -493,7 +492,7 @@ twitch.on("message", async (channel, tags, message, self) => { channel.replace("#", "") === tags.username) ) { const splitStr = message.split(" "); - let duration = parseInt(splitStr[1], 10); + const duration = parseInt(splitStr[1], 10); if (raffleOpen) { twitch.say(