aboutsummaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-24 23:16:04 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-24 23:16:04 -0400
commita297485a0a0e54bf5942642b633dc31be934da0f (patch)
tree04159a5002ef6b55067834c385ffd7b7ff55168b /src/bot.ts
parent31b05eeb34f1d9e9d89718333e0ec59cd405fc51 (diff)
downloadtanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.tar.gz
tanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.tar.bz2
tanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.zip
misc
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bot.ts b/src/bot.ts
index ed8ca65..c9a7a49 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -15,6 +15,10 @@ const isDry = process.argv.includes('dry');
if (!isDry && config.credentials.sentryDsn !== null) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd(), config);
BushClient.extendStructures();
const client = new BushClient(config);
+
+// @ts-ignore: for debugging purposes
+global.client = client;
+
if (!isDry) await client.dbPreInit();
await client.init();
if (isDry) {