@dcrays/dcgchat-test 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tool.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/dcgchat-test",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin for 书灵墨宝 (WebSocket)",
6
6
  "main": "index.ts",
package/src/tool.ts CHANGED
@@ -106,7 +106,7 @@ export function monitoringToolMessage(api: OpenClawPluginApi) {
106
106
  } else if (item.event) {
107
107
  const msgCtx = getEffectiveMsgParams(sk)
108
108
  if (item.event === 'llm_output') {
109
- if (event.lastAssistant?.errorMessage === '429-账户额度耗尽') {
109
+ if (event.lastAssistant?.errorMessage === '1003-额度不足请充值') {
110
110
  const message = '您的积分已消耗完,您可以通过充值积分来继续使用'
111
111
  sendText(message, msgCtx, { message_tags: { insufficient_balance: 1 }, is_finish: -1 })
112
112
  sendFinal(msgCtx, '积分不足')