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

Method is_user_exist

plugins/dbusers.py:25–27  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

23 await self.col.insert_one(user)
24
25 async def is_user_exist(self, id):
26 user = await self.col.find_one({'id':int(id)})
27 return bool(user)
28
29 async def total_users_count(self):
30 count = await self.col.count_documents({})

Callers 1

startFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected