aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {