2024-06-13 20:56:03 +00:00
|
|
|
package main
|
|
|
|
|
2024-06-14 17:04:23 +00:00
|
|
|
import (
|
|
|
|
"skunkyart/app"
|
2024-08-13 12:59:52 +00:00
|
|
|
"skunkyart/static"
|
2024-08-01 19:48:05 +00:00
|
|
|
"time"
|
2024-06-14 17:04:23 +00:00
|
|
|
|
|
|
|
"git.macaw.me/skunky/devianter"
|
|
|
|
)
|
2024-06-13 20:56:03 +00:00
|
|
|
|
|
|
|
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()
|
2024-08-13 12:59:52 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}()
|
2024-06-14 17:04:23 +00:00
|
|
|
|
2024-06-13 20:56:03 +00:00
|
|
|
app.Router()
|
|
|
|
}
|