SkunkyArt/main.go

30 lines
395 B
Go
Raw Normal View History

package main
import (
"skunkyart/app"
"skunkyart/static"
2024-08-01 19:48:05 +00:00
"time"
"git.macaw.me/skunky/devianter"
)
func main() {
2024-08-01 19:48:05 +00:00
go app.RefreshInstances()
app.ExecuteCommandLineArguments()
2024-07-05 21:46:25 +00:00
app.ExecuteConfig()
static.CopyTemplatesToMemory()
2024-08-01 19:48:05 +00:00
go func() {
for {
err := devianter.UpdateCSRF()
if err != nil {
println(err.Error())
}
time.Sleep(12 * time.Hour)
}
}()
app.Router()
}