From 84f246ebb5ddee984012d3043dcc67ffae806856 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 26 Dec 2021 17:32:37 -0500 Subject: remove sentry from dry runs --- src/bot.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 { -- cgit