diff --git a/wantslist.go b/wantslist.go index caf1ccd..a293ab2 100644 --- a/wantslist.go +++ b/wantslist.go @@ -6,6 +6,7 @@ import ( "io/ioutil" "log" "strconv" + "time" "github.com/brotherlogic/goserver" "github.com/brotherlogic/goserver/utils" @@ -141,5 +142,7 @@ func main() { server.RegisterServer("wantslist", false) + server.RegisterRepeatingTask(server.processWantLists, "process_want_lists", time.Minute*5) + fmt.Printf("%v", server.Serve()) }