MCPcopy Create free account
hub / github.com/VJBots/VJ-File-Store / __init__

Method __init__

clone_plugins/dbusers.py:11–13  ·  view source on GitHub ↗
(self, uri, database_name)

Source from the content-addressed store, hash-verified

9class Database:
10
11 def __init__(self, uri, database_name):
12 self._client = motor.motor_asyncio.AsyncIOMotorClient(uri)
13 self.db = self._client[database_name]
14
15 async def add_user(self, bot_id, user_id):
16 user = {'user_id': int(user_id)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected