Skip to content

Commit 2392eb4

Browse files
committed
fix: channel name
1 parent d9124b4 commit 2392eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import clsx from "clsx";
22
import escapeStringRegexp from "escape-string-regexp";
33
import { gsap } from "gsap";
4-
import { includes, random } from "lodash";
4+
import { includes, lowerCase, random } from "lodash";
55
import { FC, useEffect, useRef } from "react";
66
import useWebSocket from "react-use-websocket";
77
import { parse } from "tekko";
@@ -72,8 +72,8 @@ const App: FC = () => {
7272
retryOnError: true,
7373
onOpen() {
7474
sendMessage("CAP REQ :twitch.tv/tags");
75-
sendMessage(`NICK justinfan${8000 + Math.round(Math.random() * 1000)}`);
76-
sendMessage(`JOIN #${settings.channel}`);
75+
sendMessage(`NICK justinfan${random(8000, 9000)}`);
76+
sendMessage(`JOIN #${lowerCase(settings.channel)}`);
7777
},
7878
onMessage(event) {
7979
const chunks = event.data.split("\r\n");

0 commit comments

Comments
 (0)