From 627979e836edd0801f9201a98e239bf697a211be Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 10 Jul 2022 21:54:43 +0200 Subject: allow more config options to be null / not set --- src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bot.ts') diff --git a/src/bot.ts b/src/bot.ts index 7d8327e..d7b5ad9 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -10,7 +10,7 @@ const { Sentry } = await import('./lib/common/Sentry.js'); const { BushClient } = await import('./lib/index.js'); const isDry = process.argv.includes('dry'); -if (!isDry) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd()); +if (!isDry && config.credentials.sentryDsn !== null) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd(), config); BushClient.extendStructures(); const client = new BushClient(config); if (!isDry) await client.dbPreInit(); -- cgit