diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:32:37 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:32:37 -0500 |
commit | 84f246ebb5ddee984012d3043dcc67ffae806856 (patch) | |
tree | f54ffe64ca7e8283cf9369b2cea05607375d0cfc /src | |
parent | 60e3641665cd5c91421782d481c25a89cb61c6be (diff) | |
download | tanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.tar.gz tanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.tar.bz2 tanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.zip |
remove sentry from dry runs
Diffstat (limited to 'src')
-rw-r--r-- | src/bot.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,11 +5,12 @@ import config from './config/options.js'; import { Sentry } from './lib/common/Sentry.js'; import { BushClient } from './lib/index.js'; -new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd()); +const isDry = process.argv.includes('dry'); +if (!isDry) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd()); BushClient.extendStructures(); const client = new BushClient(config); await client.init(); -if (process.argv.includes('dry')) { +if (isDry) { await client.destroy(); process.exit(0); } else { |