Meta-AI / chatbot /plugins /user_database.py
randydev's picture
Update chatbot/plugins/user_database.py
7283598 verified
raw
history blame contribute delete
268 Bytes
import os
from dotenv import load_dotenv
import datetime
import time
from motor.motor_asyncio import AsyncIOMotorClient
load_dotenv()
MONGO_URL = os.environ["MONGO_URL"]
client = AsyncIOMotorClient(MONGO_URL)
db = client["Akeno"]
users_collection = db["web_langs"]