diff --git a/package.json b/package.json index a739390..2e1f80c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sliverp/qqbot", - "version": "1.3.7", + "version": "1.3.8", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/gateway.ts b/src/gateway.ts index 9fd88c1..ce6d78d 100644 --- a/src/gateway.ts +++ b/src/gateway.ts @@ -575,10 +575,15 @@ openclaw cron add \\ } const userContent = event.content + attachmentInfo; - const messageBody = `【系统提示】\n${systemPrompts.join("\n")}\n\n【用户输入】\n${userContent}`; + let messageBody = `【系统提示】\n${systemPrompts.join("\n")}\n\n【用户输入】\n${userContent}`; + + if(userContent.startsWith("/")){ // 保留Openclaw原始命令 + messageBody = userContent + } + log?.info(`[qqbot:${account.accountId}] messageBody: ${messageBody}`); const body = pluginRuntime.channel.reply.formatInboundEnvelope({ - channel: "QQBot", + channel: "qqbot", from: event.senderName ?? event.senderId, timestamp: new Date(event.timestamp).getTime(), body: messageBody,