Skip to content

Commit

Permalink
fix: change duration to const
Browse files Browse the repository at this point in the history
  • Loading branch information
opti21 committed May 13, 2022
1 parent f9e18bd commit 7f6f264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ twitch.connect().catch(console.error);

let raffleOpen = false;
let raffleSecondsLeft: number;

let raffleIntervalCheck: ReturnType<typeof setTimeout>;

twitch.on("message", async (channel, tags, message, self) => {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 7f6f264

Please sign in to comment.