Warning
This repository has been archived as it's outdated
- Head to MongoDB.com
- Create a new organization
- Give it a cool name
- Choose
MongoDB Atlas
- Then, hit
Next
andCreate Organization
!
Now you've made a MongoDB organization, what's next?
- Click on
New Project
- Name it, then hit
Next
!
- Click
Create Project
- Now, build a new database!
- Pick the free option on the right
- Choose these options:
- Create your new cluster!
- After creating your cluster, you'll find yourself on this page. Enter a username and a secure password that will be used for authorization in the bot's code, then hit
create user
.
- Your cluster will take a few moments to create, wait until these buttons turn white.
- After they turned white, click on
connect
, and perform these steps:
Names can be changed to your liking.
import pymongo
from pymongo import MongoClient
client = MongoClient("the connection string you copied (MAKE SURE YOU CHANGE <PASSWORD> WITH YOUR USER'S PASSWORD!)")
db = client["MainDB"]
threads = db["threads"]
closed_threads = db["closed_threads"]