mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
refactor(qqbot): change qrcode style
This commit is contained in:
parent
c4cdf3b861
commit
1648e41c17
1 changed files with 1 additions and 1 deletions
|
|
@ -2738,7 +2738,7 @@ def _qqbot_render_qr(url: str) -> bool:
|
|||
"""Try to render a QR code in the terminal. Returns True if successful."""
|
||||
try:
|
||||
import qrcode as _qr
|
||||
qr = _qr.QRCode()
|
||||
qr = _qr.QRCode(border=1,error_correction=_qr.constants.ERROR_CORRECT_L)
|
||||
qr.add_data(url)
|
||||
qr.make(fit=True)
|
||||
qr.print_ascii(invert=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue