From 64ccc5786f6c1e432190fbc6f1b85dd2c2d282eb Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Sun, 22 Sep 2024 02:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=83=85=E5=86=B5=E4=B8=8B=E5=8F=91=E9=80=81=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=B8=BAtext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/client.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/GenshinUID/client.py b/GenshinUID/client.py index 5affaa1c..4ed70060 100644 --- a/GenshinUID/client.py +++ b/GenshinUID/client.py @@ -184,7 +184,7 @@ async def onebot_send( for _c in gsmsgs: if _c.data: if _c.type == 'text': - message.append(_c.type) + message.append(_c.data) elif _c.type == 'image': message.append( f'[CQ:image,file={_c.data}]'.replace( @@ -195,9 +195,11 @@ async def onebot_send( elif _c.type == 'node': messages = [ to_json( - f'[CQ:image,file={_msg["data"]}]' - if _msg['type'] == 'image' - else _msg['data'], + ( + f'[CQ:image,file={_msg["data"]}]' + if _msg['type'] == 'image' + else _msg['data'] + ), '小助手', str(2854196310), )