aboutsummaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-08 12:25:35 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-08 12:25:35 -0500
commit0e160ae77477f0986a02746e84158329299f438f (patch)
tree55a70950bae700bbd77ff693aecd1b2cbf0777cf /src/bot.ts
parent42eab3390f7e2fcdc020eb1e3d602a46c9f34273 (diff)
downloadtanzanite-0e160ae77477f0986a02746e84158329299f438f.tar.gz
tanzanite-0e160ae77477f0986a02746e84158329299f438f.tar.bz2
tanzanite-0e160ae77477f0986a02746e84158329299f438f.zip
add shared db
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 9120f77..56a6148 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -9,6 +9,7 @@ const isDry = process.argv.includes('dry');
if (!isDry) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd());
BushClient.extendStructures();
const client = new BushClient(config);
+if (!isDry) await client.dbPreInit();
await client.init();
if (isDry) {
await client.destroy();