diff --git a/config/config.js b/config/config.js index e7b984f..04abfb1 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "12.7.6", + Version: "12.7.7", Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830", diff --git a/structures/QuarksBot.js b/structures/QuarksBot.js index 80dc330..ce86a71 100644 --- a/structures/QuarksBot.js +++ b/structures/QuarksBot.js @@ -72,7 +72,7 @@ class QuarksBot extends Client { async connectMongo(mongoURI, dbo) { try { // Connect to MongoDB database. - this.db = await MongoClient.connect(mongoURI); + this.db = await MongoClient.connect(mongoURI, {connectTimeoutMS: 5000}); this.dbo = this.db.db(dbo); mongoose.connect(`${mongoURI}/${dbo}`); this.log('Successfully connected to mongoDB');