File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import clsx from "clsx" ;
22import escapeStringRegexp from "escape-string-regexp" ;
33import { gsap } from "gsap" ;
4- import { includes , random } from "lodash" ;
4+ import { includes , lowerCase , random } from "lodash" ;
55import { FC , useEffect , useRef } from "react" ;
66import useWebSocket from "react-use-websocket" ;
77import { 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" ) ;
You can’t perform that action at this time.
0 commit comments