Merge branch 'main' of github.com:SowinskiBraeden/quarksBot
This commit is contained in:
commit
e4a3000a15
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2,7 +2,7 @@ require('dotenv').config();
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Dev: "PROD.",
|
Dev: "PROD.",
|
||||||
Version: "12.7.6",
|
Version: "12.7.7",
|
||||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||||
DefaultPrefix: "?",
|
DefaultPrefix: "?",
|
||||||
ServerID: "955668596745461830",
|
ServerID: "955668596745461830",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class QuarksBot extends Client {
|
|||||||
async connectMongo(mongoURI, dbo) {
|
async connectMongo(mongoURI, dbo) {
|
||||||
try {
|
try {
|
||||||
// Connect to MongoDB database.
|
// Connect to MongoDB database.
|
||||||
this.db = await MongoClient.connect(mongoURI);
|
this.db = await MongoClient.connect(mongoURI, {connectTimeoutMS: 5000});
|
||||||
this.dbo = this.db.db(dbo);
|
this.dbo = this.db.db(dbo);
|
||||||
mongoose.connect(`${mongoURI}/${dbo}`);
|
mongoose.connect(`${mongoURI}/${dbo}`);
|
||||||
this.log('Successfully connected to mongoDB');
|
this.log('Successfully connected to mongoDB');
|
||||||
|
|||||||
Reference in new issue
Block a user