diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-07-10 21:54:43 +0200 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-07-10 21:54:43 +0200 |
commit | 627979e836edd0801f9201a98e239bf697a211be (patch) | |
tree | 0cf2d347d4eb6f02bfcc714307c4e211664c53b9 /src/bot.ts | |
parent | 131b44f23be250aed2aeacdb51321b141d2ede4f (diff) | |
download | tanzanite-627979e836edd0801f9201a98e239bf697a211be.tar.gz tanzanite-627979e836edd0801f9201a98e239bf697a211be.tar.bz2 tanzanite-627979e836edd0801f9201a98e239bf697a211be.zip |
allow more config options to be null / not set
Diffstat (limited to 'src/bot.ts')
-rw-r--r-- | src/bot.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |