mirror of https://github.com/coddrago/Heroku
Add guidelines
parent
8566a39a11
commit
dbcaa31a6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue