Merge branch 'main' of github.com:SowinskiBraeden/quarksBot

This commit is contained in:
Braeden Sowinski committed 2022-10-12 15:19:52 +00:00
commit e4a3000a15
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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');