mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-08 13:06:00 +08:00
🐛 修正部分情况下发送文字为text
This commit is contained in:
parent
b8c5eb7915
commit
64ccc5786f
@ -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),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user