From 780d258cb490c2368d0afac07173e9fa1e164e85 Mon Sep 17 00:00:00 2001 From: Martin Thielecke Date: Sat, 7 May 2022 12:53:44 +0200 Subject: [PATCH] remove needless stuff --- follower.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/follower.go b/follower.go index d962f1e..9d26d48 100644 --- a/follower.go +++ b/follower.go @@ -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")) }