MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

4
5class Database:
6 def __init__(self, uri, database_name):
7 self._client = motor.motor_asyncio.AsyncIOMotorClient(uri)
8 self.db = self._client[database_name]
9 self.col = self.db.user
10 self.premium = self.db.premium
11
12 def new_user(self, id):
13 return dict(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected