fixes some lint errors
This commit is contained in:
parent
5ccf4e6168
commit
12c12e53f7
16 changed files with 108 additions and 93 deletions
5
main.go
5
main.go
|
@ -20,6 +20,7 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal("error loading .env file")
|
||||
}
|
||||
|
||||
profilerPort, err := strconv.Atoi(os.Getenv("PROFILER_PORT"))
|
||||
if err == nil && profilerPort > 0 {
|
||||
go func() {
|
||||
|
@ -27,13 +28,17 @@ func main() {
|
|||
http.ListenAndServe(fmt.Sprintf(":%d", profilerPort), nil)
|
||||
}()
|
||||
}
|
||||
|
||||
util.CleanupDownloadsDir()
|
||||
util.StartDownloadsCleanup()
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue