make demo more interesting by prompting for input

This commit is contained in:
JJTech0130 2023-07-24 10:50:49 -04:00
parent d8cb6d7641
commit b32cba7501
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6

11
demo.py
View file

@ -101,7 +101,16 @@ else:
vd = b64encode(vd).decode()
user.register(vd)
logging.info(f"Looked up textgpt@icloud.com, got response: {user.lookup(['mailto:textgpt@icloud.com'])}")
#logging.info(f"Looked up textgpt@icloud.com, got response: {user.lookup(['mailto:textgpt@icloud.com'])}")
logging.info("Enter a username to look up, for example: mailto:textgpt@icloud.com")
while True:
# Read a line from stdin
line = input("> ")
if line == "":
break
# Look up the username
logging.info(f"Looked up {line}, got response: {user.lookup([line])}")
# Write config.json
CONFIG["id"] = {