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

Function check_token

utils.py:39–50  ·  view source on GitHub ↗
(bot, userid, token)

Source from the content-addressed store, hash-verified

37 return link
38
39async def check_token(bot, userid, token):
40 user = await bot.get_users(userid)
41 if user.id in TOKENS.keys():
42 TKN = TOKENS[user.id]
43 if token in TKN.keys():
44 is_used = TKN[token]
45 if is_used == True:
46 return False
47 else:
48 return True
49 else:
50 return False
51
52async def get_token(bot, userid, link):
53 user = await bot.get_users(userid)

Callers 1

startFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected