hnbot/main.go

15 lines
246 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 {
PostStoryToStackerNews(&story)
}
time.Sleep(time.Hour)
}
}