aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {