File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,10 @@ import (
55 "fmt"
66 "github.com/gorilla/websocket"
77 "log"
8- "massdm/src"
98 "net/http"
109 "time"
1110)
1211
13- var (
14- c = massdm .X ()
15- )
1612
1713func Sub (ws * Sock , guildid , Channel string ) error {
1814 payload := Data {
@@ -123,7 +119,9 @@ func (Ws *Sock) Connect(Token string) *WsResp {
123119 "Sec-WebSocket-Extensions" : []string {"permessage-deflate; client_max_window_bits" },
124120 "User-Agent" : []string {"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9006 Chrome/91.0.4472.164 Electron/13.6.6 Safari/537.36" },
125121 })
126- c .Errs (err )
122+ if err != nil {
123+ log .Fatal (err )
124+ }
127125 Ws .Ws = ws
128126 interval , err := Ws .ReadHello ()
129127 if err != nil {
You can’t perform that action at this time.
0 commit comments