Skip to content

Commit

Permalink
Update scraper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
YABOIpy authored Mar 29, 2023
1 parent c49048e commit e0072c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import (
"fmt"
"github.com/gorilla/websocket"
"log"
"massdm/src"
"net/http"
"time"
)

var (
c = massdm.X()
)

func Sub(ws *Sock, guildid, Channel string) error {
payload := Data{
Expand Down Expand Up @@ -123,7 +119,9 @@ func (Ws *Sock) Connect(Token string) *WsResp {
"Sec-WebSocket-Extensions": []string{"permessage-deflate; client_max_window_bits"},
"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"},
})
c.Errs(err)
if err != nil {
log.Fatal(err)
}
Ws.Ws = ws
interval, err := Ws.ReadHello()
if err != nil {
Expand Down

0 comments on commit e0072c7

Please sign in to comment.