MCPcopy Index your code
hub / github.com/VJBots/VJ-File-Store / get_user

Function get_user

plugins/users_api.py:29–40  ·  view source on GitHub ↗
(user_id)

Source from the content-addressed store, hash-verified

27# Ask Doubt on telegram @KingVJ01
28
29async def get_user(user_id):
30 user_id = int(user_id)
31 user = mongo_db.user.find_one({"user_id": user_id})
32 if not user:
33 res = {
34 "user_id": user_id,
35 "shortener_api": None,
36 "base_site": None,
37 }
38 mongo_db.user.insert_one(res)
39 user = mongo_db.user.find_one({"user_id": user_id})
40 return user
41
42# Don't Remove Credit Tg - @VJ_Bots
43# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers 5

shortener_api_handlerFunction · 0.90
base_site_handlerFunction · 0.90
incoming_gen_linkFunction · 0.90
gen_link_sFunction · 0.90
gen_link_batchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected