add new route
continuous-integration/drone/push Build is passing

This commit is contained in:
Jay
2021-06-21 22:18:13 +08:00
parent 08e0607a88
commit c07a1a8c9f
4 changed files with 27 additions and 12 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"git.trj.tw/golang/mtfosbot/module/twitch-irc"
twitchirc "git.trj.tw/golang/mtfosbot/module/twitch-irc"
"git.trj.tw/golang/mtfosbot/model"
)
@@ -50,7 +50,7 @@ func getOpayData(ch *model.TwitchChannel) {
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("User-Agent", "Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0")
req.Header.Add("User-Agent", "Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/80.0")
resp, err := http.DefaultClient.Do(req)
if err != nil {