diff options
Diffstat (limited to 'src/bot.cpp')
-rw-r--r-- | src/bot.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index b1d530c..8c3a84c 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -24,7 +24,10 @@ Bot::Bot(bool devel, dpp::cluster* cluster, char prefix, json &cfg) { std::string token = cfg.value("token", "bad-token"); - this->conn = db::connect(cfg["postgres"]["host"], cfg["postgres"]["user"], cfg["postgres"]["pass"], cfg["postgres"]["database"], cfg["postgres"]["port"]); + this->core->log(dpp::ll_debug, "Attempting DB connection"); + + + this->conn = db::connect(cfg.value("postgres", "postgres://localhost/142bot")); run_database_migrations(); |