MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / connect

Method connect

plugins/db.py:21–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 self.files = None
20
21 async def connect(self):
22 self.client = motor.motor_asyncio.AsyncIOMotorClient(self.uri)
23 self.db = self.client[self.db_name]
24 self.files = self.db[self.collection]
25
26 async def close(self):
27 if self.client:

Callers 2

connect_user_dbFunction · 0.95
add_sessionMethod · 0.80

Calls

no outgoing calls

Tested by 1

add_sessionMethod · 0.64