MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / handleDeletedClean

Method handleDeletedClean

clean/clean.ts:126–146  ·  view source on GitHub ↗
(client: any, msg: Api.Message, parts: string[])

Source from the content-addressed store, hash-verified

124
125 // 处理删除账号清理
126 private async handleDeletedClean(client: any, msg: Api.Message, parts: string[]): Promise<void> {
127 const action = parts[2]?.toLowerCase();
128 const operation = parts[3]?.toLowerCase();
129
130 if (!action) {
131 await this.sendError(msg, "请指定清理类型: pm (私聊) 或 member (群组)");
132 return;
133 }
134
135 switch (action) {
136 case "pm":
137 await this.cleanDeletedPM(client, msg, operation === "rm");
138 break;
139 case "member":
140 await this.cleanDeletedMember(client, msg, operation === "rm");
141 break;
142 default:
143 await this.sendError(msg, `未知类型: ${htmlEscape(action)}`);
144 break;
145 }
146 }
147
148 // 处理拉黑/解封清理
149 private async handleBlockedClean(client: any, msg: Api.Message, parts: string[]): Promise<void> {

Callers 1

handleCleanMethod · 0.95

Calls 4

sendErrorMethod · 0.95
cleanDeletedPMMethod · 0.95
cleanDeletedMemberMethod · 0.95
htmlEscapeFunction · 0.70

Tested by

no test coverage detected