Open estrng opened 2 years ago
i think it will work if you added dbOpthions
new WOKCommands(client, {
debug: true,
dbOptions: { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false, useCreateIndex: true }
});
and then make sure ti whitelist your IP here
i think it will work if you added dbOpthions
new WOKCommands(client, { debug: true, dbOptions: { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false, useCreateIndex: true } });
and then make sure ti whitelist your IP here
I tried many things to solve. But i made my own command handler to use with db connection. So i'm not using WOK anymore.
Thanks for your reply.
Hellos guys, sorry in advance if this is no issue.
The scenarios is using the follow:
"axios": "^0.25.0", "discord.js": "^13.6.0", "dotenv": "^14.2.0", "mongoose": "^6.1.8", "wokcommands": "^1.5.3"
"@types/node": "^17.0.10", "rimraf": "^3.0.2", "typescript": "^4.5.5"
I followed the video How to connect your Discord bot to a MongoDB Database - Discord.JS v13.
It`s look like is everything good with the connection and the default collections were made:
index.ts
Running bash:
warn-schema.ts
Defaults Collections on Atlas:
But the new schema
warn-schema
that i created weren't made i noticed that after i made the follow video Discord.JS v13 - Warn System with Slash Commands (Add, Remove, List), because i was very confident that everything would work properly because it all quite simple.warn.ts
But when try to create new schema in the Mongo using the
/warn
command it throws the following error:I had tried some the follows comments on the internet:
GitHub Issue 9732 Stackoverflow
Its look like is something new, i found this comments in the mongo official community: mongooseerror-operation-users-insertone-buffering-timed-out-after-10000ms
If anyone helps me would be very appreciated, i'll keep eye in the oficial mongo community if get something and let you know.
If this is no issue please let me know then i erase the thread.
Thank you!