(reply)
| 5494 | } |
| 5495 | |
| 5496 | async function buildOneBotPrivateReplyMessage(reply) { |
| 5497 | const message = []; |
| 5498 | const imagePaths = await resolveQqReplyMedia(reply, { stickerDir: qqStickerDir }); |
| 5499 | const text = stripQqImageAttachmentMarkers(reply); |
| 5500 | if (text) { |
| 5501 | message.push({ |
| 5502 | type: "text", |
| 5503 | data: { text } |
| 5504 | }); |
| 5505 | } |
| 5506 | for (const imagePath of imagePaths) { |
| 5507 | message.push(buildQqImageSegment(imagePath)); |
| 5508 | } |
| 5509 | if (message.length === 0) { |
| 5510 | message.push({ |
| 5511 | type: "text", |
| 5512 | data: { text: "这个表情包没找到,请先把素材放进表情包库。" } |
| 5513 | }); |
| 5514 | } |
| 5515 | return message; |
| 5516 | } |
| 5517 | |
| 5518 | async function buildOneBotReplyMessage(event, reply, options = {}) { |
| 5519 | const message = []; |
no test coverage detected