mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-12-10 05:19:46 +05:00
v1.3
This commit is contained in:
18
main.go
18
main.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user