Skip to content

Commit dc69bc7

Browse files
committed
Merge branch 'beta'
2 parents dd51215 + 919d7e3 commit dc69bc7

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

Diff for: exporter.go

+17-15
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515

1616
var (
1717
ApiUrl string
18-
ProxyAuthToken *string
19-
CurseAuthToken *string
18+
//ProxyAuthToken *string
19+
//CurseAuthToken *string
2020
PackVersion *string
2121
ExportName *string
2222
BuildConfig buildJson
@@ -28,22 +28,24 @@ func main() {
2828
PackVersion = flag.String("p", "1.0.0", "Pack Version (e.g 1.0.0)")
2929
ExportName = flag.String("n", "Twitch-Export", "Export Name")
3030
buildConfig := flag.String("c", ".build.json", "Config file to get build variables")
31-
ProxyAuthToken = flag.String("pt", "", "Proxy authentication token used to authenticate with Gaz's Twitch Proxy")
32-
CurseAuthToken = flag.String("ct", "", "Curse authentication token used to authenticate with the Curseforge/twitch API")
31+
//ProxyAuthToken = flag.String("pt", "", "Proxy authentication token used to authenticate with Gaz's Twitch Proxy")
32+
//CurseAuthToken = flag.String("ct", "", "Curse authentication token used to authenticate with the Curseforge/twitch API")
3333
flag.Parse()
3434

35-
if *ProxyAuthToken == "" && *CurseAuthToken == "" {
36-
fmt.Println("Please enter a authentication token using -pt <toke>")
37-
os.Exit(1)
38-
}
35+
//if *ProxyAuthToken == "" && *CurseAuthToken == "" {
36+
// fmt.Println("Please enter a authentication token using -pt <toke>")
37+
// os.Exit(1)
38+
//}
39+
//
40+
//if *ProxyAuthToken != "" && *CurseAuthToken == "" {
41+
// ApiUrl = "https://curse.gaz492.uk/api/"
42+
// fmt.Println("Using: " + ApiUrl + " as API")
43+
//} else if *CurseAuthToken != "" && *ProxyAuthToken == "" {
44+
// ApiUrl = "https://addons-ecs.forgesvc.net/api/"
45+
// fmt.Println("Using: " + ApiUrl + " as API")
46+
//}
3947

40-
if *ProxyAuthToken != "" && *CurseAuthToken == "" {
41-
ApiUrl = "https://curse.gaz492.uk/api/"
42-
fmt.Println("Using: " + ApiUrl + " as API")
43-
} else if *CurseAuthToken != "" && *ProxyAuthToken == "" {
44-
ApiUrl = "https://addons-ecs.forgesvc.net/api/"
45-
fmt.Println("Using: " + ApiUrl + " as API")
46-
}
48+
ApiUrl = "https://addons-ecs.forgesvc.net/api/"
4749

4850
BuildConfig = readBuildJson(*buildConfig)
4951
if BuildConfig.PackAuthor == "" {

Diff for: utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func GetHTTPResponse(method, url string, b []byte) (*http.Response, error) {
220220
return nil, err
221221
}
222222

223-
req.Header.Add("authToken", *ProxyAuthToken)
223+
//req.Header.Add("authToken", *ProxyAuthToken)
224224
req.Header.Add("Content-Type", "application/json")
225225
return client.Do(req)
226226

0 commit comments

Comments
 (0)