casperiv0 / ghostybot

🤖 A feature-rich Discord bot with +200 commands for Discord servers. Economy, util, fun, music, admin and more! Built with Next.js and Discord.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Newbie is Back!

DiabolicAngeL opened this issue · comments

Description
Hello again Casper, it's been a long time. I hope you're doing well.
I'm trying to setup your bot but of course I'm not doing it right and I need your help.
I managed to setup everything (I think)

I am just getting the following error.

MongooseError: Operation `bots.findOne()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/ghostybot/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:184:20)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

I am using https://cloud.mongodb.com

Thanks a lot!
Great job once again!

Can't wait to be back and try your new CAD too!

Make sure the login to the db is correct

Hello casper,

here is my link mongodb+srv://dgbotghost:<password-here>@<cluster-name>.6x9t7.mongodb.net/discordbotdg?retryWrites=true

I tried with discordbotdg.discordbotdg too. Maybe I'm doing something else wrong

image

try remove the ?retryWrites=true

try remove the ?retryWrites=true

Thank you for the reply,
No, that didn't work

Make sure to user: mongodb+srv://<user here> is correct, you can check in the database access and make sure your IP is whitelisted so it can connect to mongodb here

Both checked. I have allowed access to all and I added the server ip too just in case..
image
image

did u fill in the pass?

did u fill in the pass?

yeap

Ps. When I create a database I put the database name, what should I put in collection name? Maybe that's what i'm doing wrong? I don't know

Problem solved.
If anyone else have the same problem, be sure to open the following ports.

27015,27016,27017

https://docs.atlas.mongodb.com/troubleshoot-connection#attempting-to-connect-to-a-cluster-from-behind-a-firewall