refactor(qqbot): change qrcode style

This commit is contained in:
WideLee 2026-04-17 18:43:11 +08:00 committed by Teknium
parent c4cdf3b861
commit 1648e41c17

View file

@ -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)