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

Function check_verification

utils.py:67–80  ·  view source on GitHub ↗
(bot, userid)

Source from the content-addressed store, hash-verified

65 VERIFIED[user.id] = str(today)
66
67async def check_verification(bot, userid):
68 user = await bot.get_users(userid)
69 tz = pytz.timezone('Asia/Kolkata')
70 today = date.today()
71 if user.id in VERIFIED.keys():
72 EXP = VERIFIED[user.id]
73 years, month, day = EXP.split('-')
74 comp = date(int(years), int(month), int(day))
75 if comp<today:
76 return False
77 else:
78 return True
79 else:
80 return False

Callers 1

startFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected