feat: auto remove old skim user

This commit is contained in:
2025-07-17 02:38:24 +05:00
parent df62efc692
commit b79b0ae69f
3 changed files with 42 additions and 14 deletions

View File

@ -1,10 +1,12 @@
from motor.motor_asyncio import AsyncIOMotorClient
from dotenv import load_dotenv
import os
from pathlib import Path
load_dotenv()
env_path = Path(__file__).parent.parent / ".env"
load_dotenv(dotenv_path=env_path)
MONGO_URI = os.getenv("MONGO_URI", "mongodb://localhost:32768")
MONGO_URI = os.getenv("MONGO_URI")
DB_NAME = "minecraft_auth"
client = AsyncIOMotorClient(MONGO_URI)