(client: any, msg: Api.Message, parts: string[])
| 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> { |
no test coverage detected