diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-24 23:16:04 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-24 23:16:04 -0400 |
commit | a297485a0a0e54bf5942642b633dc31be934da0f (patch) | |
tree | 04159a5002ef6b55067834c385ffd7b7ff55168b /src/bot.ts | |
parent | 31b05eeb34f1d9e9d89718333e0ec59cd405fc51 (diff) | |
download | tanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.tar.gz tanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.tar.bz2 tanzanite-a297485a0a0e54bf5942642b633dc31be934da0f.zip |
misc
Diffstat (limited to 'src/bot.ts')
-rw-r--r-- | src/bot.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |