Add guidelines

pull/1/head
hikariatama 2023-03-02 13:14:26 +00:00
parent 8566a39a11
commit dbcaa31a6c
1 changed files with 4 additions and 0 deletions

View File

@ -547,13 +547,17 @@ class Hikka:
self.clients += [client]
return True
print("\033[0;96mLoading QR code...\033[0m")
await client.connect()
qr_login = await client.qr_login()
def print_qr():
qr = QRCode()
qr.add_data(qr_login.url)
print("\033[2J\033[3;1f")
qr.print_ascii(invert=True)
print("\033[0;96mScan the QR code above to log in.\033[0m")
async def qr_login_poll() -> bool:
logged_in = False