merge-requests/25/merge
Matthew 2021-04-27 01:22:50 -04:00
parent 1e0716b409
commit a60270719a
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 7 additions and 1 deletions

View File

@ -121,7 +121,13 @@ export default class Client extends eris.Client {
public async loadDatabase() {
await mongoose.connect(this.config.mongoDB, { useNewUrlParser: true, useUnifiedTopology: true, poolSize: 50 });
await mongoose.connect(this.config.mongoDB, {
useNewUrlParser: true,
useUnifiedTopology: true,
poolSize: 50,
autoReconnect: true,
replicaSet: 'rs0',
});
const statMessages = await this.db.Stat.findOne({ name: 'messages' });
const statCommands = await this.db.Stat.findOne({ name: 'commands' });