diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-16 17:35:53 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-16 17:35:53 -0500 |
commit | 0d7e71b0c5056ebbfbbd02f71d1a35f2dff9bf4c (patch) | |
tree | b20ab2c08c5a2621effc271edb0576b7bf69ace6 /src/bot.ts | |
parent | b2908096f668b9a67e8a3a0259d95a9e56f7dc68 (diff) | |
download | tanzanite-0d7e71b0c5056ebbfbbd02f71d1a35f2dff9bf4c.tar.gz tanzanite-0d7e71b0c5056ebbfbbd02f71d1a35f2dff9bf4c.tar.bz2 tanzanite-0d7e71b0c5056ebbfbbd02f71d1a35f2dff9bf4c.zip |
refactor: declare global vars in bot.ts
Diffstat (limited to 'src/bot.ts')
-rw-r--r-- | src/bot.ts | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8,6 +8,8 @@ const isDry = process.argv.includes('dry'); if (!isDry) new Sentry(dirname(fileURLToPath(import.meta.url)) || process.cwd()); BushClient.extendStructures(); const client = new BushClient(config); +global.client = client; +global.util = client.util; if (!isDry) await client.dbPreInit(); await client.init(); if (isDry) { |