MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / untraceUser

Method untraceUser

trace/trace.ts:325–342  ·  view source on GitHub ↗
(msg: Api.Message, repliedMsg: Api.Message)

Source from the content-addressed store, hash-verified

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();

Callers 1

handleTraceMethod · 0.95

Calls 3

formatEntityMethod · 0.95
editAndDeleteMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected