remove needless stuff
This commit is contained in:
parent
74fb23d503
commit
780d258cb4
|
@ -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"))
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user