remove needless stuff

This commit is contained in:
Martin Thielecke 2022-05-07 12:53:44 +02:00
parent 74fb23d503
commit 780d258cb4
Signed by: mthie
GPG Key ID: D1D25A85C8604DFB

View File

@ -38,7 +38,6 @@ func getFollows(u *User, max int) {
for {
client := twitchOauthConfig.Client(context.Background(), u.Token)
req, err := http.NewRequest("GET", "https://api.twitch.tv/helix/users/follows?to_id="+u.ID+after, nil)
// req, err := http.NewRequest("GET", "https://api.twitch.tv/helix/users/follows?to_id=276021569"+after, nil)
if err != nil {
log.WithError(err).Error("Unable to create http request to get twitch follower data")
return
@ -111,7 +110,7 @@ func (f *TwitchFollowers) SaveFiles() {
fs = append(fs, name)
ids = append(ids, id)
}
log.Infof("We have %d inactive followers", len(fs))
saveJSON("followers", "inactive", fs)
saveContent("followers", "inactive_ids", strings.Join(ids, "\n"))
}