aboutsummaryrefslogtreecommitdiff
path: root/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-29 19:53:53 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-29 19:53:53 -0400
commit800668f3e0fec80f3ba08f115d9563324bc54045 (patch)
tree6a210bcfafbdd82382dab1dc18a7e2aca93e42de /lib/extensions/discord-akairo
parentd941214503812267415db570f646cc69bc22664d (diff)
downloadtanzanite-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.ts7
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;