diff --git a/main.go b/main.go index 27fa5c6..4fa8ef7 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,14 @@ package main +import "time" + func main() { - stories := FetchHackerNewsTopStories() - filtered := CurateContentForStackerNews(&stories) - for _, story := range *filtered { - PostStoryToStackerNews(&story) + for { + stories := FetchHackerNewsTopStories() + filtered := CurateContentForStackerNews(&stories) + for _, story := range *filtered { + PostStoryToStackerNews(&story) + } + time.Sleep(time.Hour) } }