Connect to db in main

development v0.0.4
DustyP 5 years ago
parent fb73d50d86
commit 08a2241d6c

@ -8,6 +8,7 @@ import (
"github.com/bwmarrin/discordgo" "github.com/bwmarrin/discordgo"
"github.com/dustinpianalto/disgoman" "github.com/dustinpianalto/disgoman"
"github.com/dustinpianalto/geeksbot/internal/database"
"github.com/dustinpianalto/geeksbot/internal/exts" "github.com/dustinpianalto/geeksbot/internal/exts"
) )
@ -25,7 +26,7 @@ func main() {
Intents: discordgo.MakeIntent(discordgo.IntentsAll), Intents: discordgo.MakeIntent(discordgo.IntentsAll),
} }
//postgres.ConnectDatabase(os.Getenv("DATABASE_URL")) database.ConnectDatabase(os.Getenv("DATABASE_URL"))
//postgres.InitializeDatabase() //postgres.InitializeDatabase()
//utils.LoadTestData() //utils.LoadTestData()

Loading…
Cancel
Save