From 669bb71392743e306c857dd0248b328e97d7e479 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 12 Oct 2022 08:07:23 -0700 Subject: [PATCH] test failed mongo connection --- structures/QuarksBot.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/structures/QuarksBot.js b/structures/QuarksBot.js index 80dc330..1066c29 100644 --- a/structures/QuarksBot.js +++ b/structures/QuarksBot.js @@ -24,7 +24,7 @@ class QuarksBot extends Client { this.db; this.dbo; - this.connectMongo(this.config.mongoURI, this.config.dbo); + this.connectDB(this.config.mongoURI, this.config.dbo); this.LoadCommands(); this.LoadEvents(); @@ -69,6 +69,10 @@ class QuarksBot extends Client { const client = this; } + async connectDB(mongoURI, dbo) { + await this.connectMongo(mongoURI, dbo) + } + async connectMongo(mongoURI, dbo) { try { // Connect to MongoDB database.