#help
1 messages · Page 1 of 1 (latest)
That's not how mongo works
I believe the correct way to do this would be the following:
password = os.environ["MongoDB password"]
client = pymongo.MongoClient(INSERT CONNECTION LINK HERE)
db = client.warns
coll = db.serverwarns```
it's py database = client["databse"] collection = database["defense"]
Also don't use pymongo. It is a blocking library. Not meant for async programming
Use motor as it is async
And please title your posts better than "help"