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

Method add_user

clone_plugins/dbusers.py:15–17  ·  view source on GitHub ↗
(self, bot_id, user_id)

Source from the content-addressed store, hash-verified

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)}
17 await self.db[str(bot_id)].insert_one(user)
18
19 async def is_user_exist(self, bot_id, id):
20 user = await self.db[str(bot_id)].find_one({'user_id': int(id)})

Callers 1

startFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected