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

Function get_token

utils.py:52–58  ·  view source on GitHub ↗
(bot, userid, link)

Source from the content-addressed store, hash-verified

50 return False
51
52async def get_token(bot, userid, link):
53 user = await bot.get_users(userid)
54 token = ''.join(random.choices(string.ascii_letters + string.digits, k=7))
55 TOKENS[user.id] = {token: False}
56 link = f"{link}verify-{user.id}-{token}"
57 shortened_verify_url = await get_verify_shorted_link(link)
58 return str(shortened_verify_url)
59
60async def verify_user(bot, userid, token):
61 user = await bot.get_users(userid)

Callers 1

startFunction · 0.90

Calls 1

get_verify_shorted_linkFunction · 0.85

Tested by

no test coverage detected