test failed mongo connection
This commit is contained in:
1 file changed
+5
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user