mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-08 21:15:52 +08:00
🐛 修正部分情况下发送文字为text
This commit is contained in:
parent
b8c5eb7915
commit
64ccc5786f
@ -184,7 +184,7 @@ async def onebot_send(
|
|||||||
for _c in gsmsgs:
|
for _c in gsmsgs:
|
||||||
if _c.data:
|
if _c.data:
|
||||||
if _c.type == 'text':
|
if _c.type == 'text':
|
||||||
message.append(_c.type)
|
message.append(_c.data)
|
||||||
elif _c.type == 'image':
|
elif _c.type == 'image':
|
||||||
message.append(
|
message.append(
|
||||||
f'[CQ:image,file={_c.data}]'.replace(
|
f'[CQ:image,file={_c.data}]'.replace(
|
||||||
@ -195,9 +195,11 @@ async def onebot_send(
|
|||||||
elif _c.type == 'node':
|
elif _c.type == 'node':
|
||||||
messages = [
|
messages = [
|
||||||
to_json(
|
to_json(
|
||||||
f'[CQ:image,file={_msg["data"]}]'
|
(
|
||||||
if _msg['type'] == 'image'
|
f'[CQ:image,file={_msg["data"]}]'
|
||||||
else _msg['data'],
|
if _msg['type'] == 'image'
|
||||||
|
else _msg['data']
|
||||||
|
),
|
||||||
'小助手',
|
'小助手',
|
||||||
str(2854196310),
|
str(2854196310),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user