govd/main.go
stefanodvx 3faede7b1c Init
2025-04-14 13:05:43 +02:00

25 lines
406 B
Go

package main
import (
"govd/bot"
"govd/database"
"govd/util"
"log"
"github.com/joho/godotenv"
)
func main() {
err := godotenv.Load()
if err != nil {
log.Fatal("error loading .env file")
}
ok := util.CheckFFmpeg()
if !ok {
log.Fatal("ffmpeg executable not found. please install it or add it to your PATH")
}
database.Start()
go bot.Start()
select {} // keep the main goroutine alive
}