aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-26 17:32:37 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-26 17:32:37 -0500
commit84f246ebb5ddee984012d3043dcc67ffae806856 (patch)
treef54ffe64ca7e8283cf9369b2cea05607375d0cfc /src
parent60e3641665cd5c91421782d481c25a89cb61c6be (diff)
downloadtanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.tar.gz
tanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.tar.bz2
tanzanite-84f246ebb5ddee984012d3043dcc67ffae806856.zip
remove sentry from dry runs
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 86a8c16..9120f77 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -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 {