diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 19:53:53 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 19:53:53 -0400 |
commit | 800668f3e0fec80f3ba08f115d9563324bc54045 (patch) | |
tree | 6a210bcfafbdd82382dab1dc18a7e2aca93e42de /lib/extensions/discord-akairo | |
parent | d941214503812267415db570f646cc69bc22664d (diff) | |
download | tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.tar.gz tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.tar.bz2 tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.zip |
deploy stuff
Diffstat (limited to 'lib/extensions/discord-akairo')
-rw-r--r-- | lib/extensions/discord-akairo/TanzaniteClient.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/extensions/discord-akairo/TanzaniteClient.ts b/lib/extensions/discord-akairo/TanzaniteClient.ts index 24ce962..fe34b58 100644 --- a/lib/extensions/discord-akairo/TanzaniteClient.ts +++ b/lib/extensions/discord-akairo/TanzaniteClient.ts @@ -347,13 +347,16 @@ export class TanzaniteClient<Ready extends boolean = boolean> extends AkairoClie logging: this.config.logging.db ? (sql) => this.logger.debug(sql) : false, timezone: 'America/New_York' }; + + const prefix = this.config.db.databasePrefix; + this.instanceDB = new Sequelize({ ...sharedDBOptions, - database: this.config.isDevelopment ? 'bushbot-dev' : this.config.isBeta ? 'bushbot-beta' : 'bushbot' + database: this.config.isDevelopment ? `${prefix}-dev` : this.config.isBeta ? `${prefix}-beta` : prefix }); this.sharedDB = new Sequelize({ ...sharedDBOptions, - database: 'bushbot-shared' + database: `${prefix}-shared` }); this.sentry = Sentry; |