This commit is contained in:
lost+skunk 2024-08-01 22:48:05 +03:00
parent 2dfeaae772
commit c5514c3875
23 changed files with 445 additions and 249 deletions

18
main.go
View file

@ -2,17 +2,27 @@ package main
import (
"skunkyart/app"
"time"
"git.macaw.me/skunky/devianter"
)
func main() {
go app.RefreshInstances()
app.ExecuteCommandLineArguments()
app.ExecuteConfig()
app.CopyTemplatesToMemory()
err := devianter.UpdateCSRF()
if err != nil {
println(err.Error())
}
go func() {
for {
err := devianter.UpdateCSRF()
if err != nil {
println(err.Error())
}
time.Sleep(12 * time.Hour)
}
}()
app.Router()
}