set configuration for each extractor

This commit is contained in:
stefanodvx 2025-04-20 12:19:14 +02:00
parent 6baa965534
commit 0a63df9ce6
19 changed files with 337 additions and 175 deletions

View file

@ -3,6 +3,7 @@ package main
import (
"fmt"
"govd/bot"
"govd/config"
"govd/database"
"govd/util"
"log"
@ -20,6 +21,10 @@ func main() {
if err != nil {
log.Fatal("error loading .env file")
}
err = config.LoadExtractorConfigs()
if err != nil {
log.Fatalf("error loading extractor configs: %v", err)
}
profilerPort, err := strconv.Atoi(os.Getenv("PROFILER_PORT"))
if err == nil && profilerPort > 0 {