aboutsummaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-26 17:23:13 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-26 17:23:13 -0500
commit4990d33a22779b524ff6476bb05fcc21cad4eace (patch)
treeec47b4a5399e1102d9d94088769e62601014dcce /src/bot.ts
parentfc390ffc300334c396d9d06b0feaf8fbc6ed2814 (diff)
downloadtanzanite-4990d33a22779b524ff6476bb05fcc21cad4eace.tar.gz
tanzanite-4990d33a22779b524ff6476bb05fcc21cad4eace.tar.bz2
tanzanite-4990d33a22779b524ff6476bb05fcc21cad4eace.zip
add dry run to tests
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 473ee27..86a8c16 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -9,4 +9,9 @@ new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd());
BushClient.extendStructures();
const client = new BushClient(config);
await client.init();
-if (!process.argv.includes('dry')) await client.start();
+if (process.argv.includes('dry')) {
+ await client.destroy();
+ process.exit(0);
+} else {
+ await client.start();
+}