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

Method is_user_exist

clone_plugins/dbusers.py:19–21  ·  view source on GitHub ↗
(self, bot_id, id)

Source from the content-addressed store, hash-verified

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)})
21 return bool(user)
22
23 async def total_users_count(self, bot_id):
24 count = await self.db[str(bot_id)].count_documents({})

Callers 1

startFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected