fix: rename plugin id to wechat-access-unqclawed, add login/logout commands, update README with enable instructions

This commit is contained in:
HenryXiaoYang
2026-03-10 03:11:39 +08:00
parent 11bb1b94eb
commit 56f91381dd
8 changed files with 85 additions and 32 deletions

View File

@@ -103,7 +103,7 @@ export const handleMessage = async (message: FuwuhaoMessage): Promise<string | n
// runtime.channel.activity.record 记录频道的活动统计
// 用于监控、分析、计费等场景
runtime.channel.activity.record({
channel: "wechat-access", // 频道标识
channel: "wechat-access-unqclawed", // 频道标识
accountId: "default", // 账号 ID
direction: "inbound", // 方向inbound=入站用户发送outbound=出站Bot 回复)
});
@@ -196,7 +196,7 @@ export const handleMessage = async (message: FuwuhaoMessage): Promise<string | n
// 记录出站活动统计Bot 回复)
runtime.channel.activity.record({
channel: "wechat-access",
channel: "wechat-access-unqclawed",
accountId: "default",
direction: "outbound", // 出站Bot 发送给用户
});
@@ -322,7 +322,7 @@ export const handleMessageStream = async (
// 4. 记录频道活动统计
// ============================================
runtime.channel.activity.record({
channel: "wechat-access",
channel: "wechat-access-unqclawed",
accountId: "default",
direction: "inbound",
});
@@ -519,7 +519,7 @@ const unsubscribeAgentEvents = onAgentEvent((evt: AgentEventPayload) => {
// 记录出站活动
runtime.channel.activity.record({
channel: "wechat-access",
channel: "wechat-access-unqclawed",
accountId: "default",
direction: "outbound",
});