mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-10-30 08:27:52 +00:00
make demo more interesting by prompting for input
This commit is contained in:
parent
d8cb6d7641
commit
b32cba7501
1 changed files with 10 additions and 1 deletions
11
demo.py
11
demo.py
|
@ -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"] = {
|
||||
|
|
Loading…
Reference in a new issue