moth/cmd/mothd/main.go

24 lines
389 B
Go
Raw Normal View History

2019-09-02 19:47:24 -06:00
package main
import (
"time"
"log"
)
func main() {
log.Print("Started")
theme := NewTheme("../../theme")
state := NewState("../../state")
puzzles := NewMothballs("../../mothballs")
interval := 2 * time.Second
go theme.Run(interval)
go state.Run(interval)
go puzzles.Run(interval)
time.Sleep(1 * time.Second)
log.Print(state.Export(""))
time.Sleep(19 * time.Second)
}