WIP: libbot 4.0.0 adoption
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from typing import Dict, Any
|
||||
|
||||
from async_pymongo import AsyncClient, AsyncCollection, AsyncDatabase
|
||||
from libbot.sync import config_get as sync_config_get
|
||||
from libbot.utils import config_get
|
||||
from pymongo import MongoClient
|
||||
from pymongo.synchronous.collection import Collection
|
||||
from pymongo.synchronous.database import Database
|
||||
|
||||
db_config: Dict[str, Any] = sync_config_get("database")
|
||||
db_config: Dict[str, Any] = config_get("database")
|
||||
|
||||
con_string: str = (
|
||||
"mongodb://{0}:{1}/{2}".format(
|
||||
|
Reference in New Issue
Block a user