MCPcopy Create free account
hub / github.com/Hanson/claude-client / constructor

Method constructor

src/feishu/handler.ts:34–48  ·  view source on GitHub ↗
(config: FeishuConfig, options: FeishuEventHandlerOptions = {})

Source from the content-addressed store, hash-verified

32 private saveInterval: NodeJS.Timeout | null = null;
33
34 constructor(config: FeishuConfig, options: FeishuEventHandlerOptions = {}) {
35 this.config = config;
36 this.client = new FeishuClient(config);
37 this.nativeClient = this.client.getNativeClient();
38 this.options = options;
39 this.eventDispatcher = new Lark.EventDispatcher({
40 encryptKey: config.encryptKey,
41 verificationToken: config.verificationToken,
42 });
43
44 // 加载已处理的消息 ID
45 this.loadProcessedIds();
46
47 this.setupEventHandlers();
48 }
49
50 /**
51 * 从文件加载已处理的消息 ID

Callers

nothing calls this directly

Calls 3

loadProcessedIdsMethod · 0.95
setupEventHandlersMethod · 0.95
getNativeClientMethod · 0.80

Tested by

no test coverage detected