diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:23:13 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-26 17:23:13 -0500 |
commit | 4990d33a22779b524ff6476bb05fcc21cad4eace (patch) | |
tree | ec47b4a5399e1102d9d94088769e62601014dcce /src/bot.ts | |
parent | fc390ffc300334c396d9d06b0feaf8fbc6ed2814 (diff) | |
download | tanzanite-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.ts | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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(); +} |