🐛 修正部分情况下发送文字为text

This commit is contained in:
KimigaiiWuyi 2024-09-22 02:18:01 +08:00
parent b8c5eb7915
commit 64ccc5786f

View File

@ -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'],
else _msg['data']
),
'小助手',
str(2854196310),
)