From c08cc6cbc9b041cacc78483df5f3062019471934 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Fri, 7 Apr 2023 10:19:10 -0400 Subject: meta: Add sentry support Change-Id: Icda968ab189d601c5e390dfee094ae4419cce9e6 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index db79289..08574d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,7 @@ int main(int argc, char const *argv[]) { json cfg = json::parse(f); string token = cfg.value("token", "bad-token"); sentry_options_t *options = sentry_options_new(); - sentry_options_set_dsn(options, "https://26f71a6064ee478c8d944b976b89eb3c@o4504969688317952.ingest.sentry.io/4504969689563136"); + sentry_options_set_dsn(options, cfg.value("sentry_dsn", "").c_str()); // This is also the default-path. For further information and recommendations: // https://docs.sentry.io/platforms/native/configuration/options/#database-path sentry_options_set_database_path(options, ".sentry-native"); @@ -74,7 +74,7 @@ int main(int argc, char const *argv[]) { }); /* code */ - Bot client(0, &bot); + Bot client(0, &bot, cfg.value("prefix", ".").at(0)); client.set_owner_id(dpp::snowflake(cfg.value("owner", "00000000000"))); -- cgit v1.2.3