MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / buildOneBotPrivateReplyMessage

Function buildOneBotPrivateReplyMessage

src/server.js:5496–5516  ·  view source on GitHub ↗
(reply)

Source from the content-addressed store, hash-verified

5494}
5495
5496async 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
5518async function buildOneBotReplyMessage(event, reply, options = {}) {
5519 const message = [];

Callers 1

sendOneBotPrivateReplyFunction · 0.85

Calls 3

resolveQqReplyMediaFunction · 0.85
buildQqImageSegmentFunction · 0.85

Tested by

no test coverage detected