(msg: Api.Message, repliedMsg: Api.Message)
| 323 | if (customCount > 0) { |
| 324 | // Build message with custom emoji entities |
| 325 | const msgBuilder = new this.MessageBuilder(); |
| 326 | msgBuilder.addLine('✅ 追踪成功'); |
| 327 | msgBuilder.addLine(`├ 👤 用户: ${userEntity.display.replace(/<[^>]*>/g, '')}`); |
| 328 | msgBuilder.add(`├ 🎯 表情: `); |
| 329 | |
| 330 | // Add reactions with proper entities |
| 331 | for (const reaction of reactions) { |
| 332 | if (typeof reaction === 'string') { |
| 333 | msgBuilder.add(reaction + ' '); |
| 334 | } else { |
| 335 | // Use a simple emoji as placeholder that will be replaced by custom emoji |
| 336 | msgBuilder.addCustomEmoji('😊', reaction); |
| 337 | msgBuilder.add(' '); |
| 338 | } |
| 339 | } |
| 340 | msgBuilder.addLine(''); |
| 341 | |
| 342 | msgBuilder.addLine(`├ 📊 表情数: ${reactionCount} 个 (含 ${customCount} 个会员表情)`); |
| 343 | msgBuilder.addLine(`└ 📊 当前追踪: ${Object.keys(this.db.data.users).length} 个用户`); |
| 344 | |
| 345 | const { text: fullMessage, entities: messageEntities } = msgBuilder.build(); |
no test coverage detected