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

Method __init__

database.py:6–13  ·  view source on GitHub ↗
(self, uri, database_name)

Source from the content-addressed store, hash-verified

4class Db:
5
6 def __init__(self, uri, database_name):
7 self._client = motor.motor_asyncio.AsyncIOMotorClient(uri)
8 self.db = self._client[database_name]
9 self.bot = self.db.bots
10 self.userbot = self.db.userbot
11 self.col = self.db.users
12 self.nfy = self.db.notify
13 self.chl = self.db.channels
14
15 def new_user(self, id, name):
16 return dict(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected