hnbot/main.go

15 lines
282 B
Go
Raw Normal View History

package main
2023-04-19 22:20:46 +00:00
import "time"
func main() {
2023-04-19 22:20:46 +00:00
for {
stories := FetchHackerNewsTopStories()
filtered := CurateContentForStackerNews(&stories)
for _, story := range *filtered {
2023-04-25 00:22:27 +00:00
PostStoryToStackerNews(&story, PostStoryOptions{SkipDupes: false})
2023-04-19 22:20:46 +00:00
}
time.Sleep(time.Hour)
}
}