From 434106c93305af13059dfd02386d2d5b55480c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Mon, 11 Jul 2022 10:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9Abase64=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshinuid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genshinuid.py b/genshinuid.py index 7ed4a55c..25091d35 100644 --- a/genshinuid.py +++ b/genshinuid.py @@ -56,8 +56,8 @@ async def send_charcard_list(bot: HoshinoBot, ev: CQEvent): uid = await select_db(int(ev.sender['user_id']), mode='uid') uid = uid[0] im = await draw_cahrcard_list(uid, limit) - - if isinstance(im, bytes): + + if im.startswith('base64://'): await bot.send(ev, MessageSegment.image(im)) else: await bot.send(ev, str(im))