From e09e7825369ec8217456065d31dbbbb992b7f1bb Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 31 May 2023 20:15:08 -0400 Subject: meta: Use system libraries to compile Also: try to make pqxx not use local socket for connections (unsuccessful) Change-Id: I351fe1a405a7c204e1276a90da75ab3d32f51bdc --- src/bot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bot.cpp') 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(); -- cgit v1.2.3