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

Function getHelpText

clean_member/clean_member.ts:528–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526 }
527 } catch (error) {
528 console.error("Failed to get admins:", error);
529 }
530 return adminIds;
531}
532
533async function checkCache(chatId: number, mode: string, day: number, statusCallback?: (message: string, forceUpdate?: boolean) => Promise<void>): Promise<CacheData | null> {
534 const cached = getFromCache(chatId, mode, day);
535 if (cached && statusCallback) {
536 await statusCallback(`📋 使用缓存: ${cached.total_found} 名用户`, true);
537 }
538 return cached;
539}
540
541function getHelpText(): string {
542 return `<b>🧹 群成员清理工具 Pro</b>
543
544<b>🔧 使用格式:</b>
545<code>${mainPrefix}clean_member <模式> <参数> [chat:-100xxx] [limit:数量] [search]</code>
546
547<b>📋 清理模式:</b>
548┌─────────────────────────
549│ <b>1</b> <天数> → 未上线超过N天
550│ <b>2</b> <天数> → 未发言超过N天
551│ <b>3</b> <数量> → 发言少于N条
552│ <b>4</b> → 已注销账户
553│ <b>5</b> → 所有普通成员 ⚠️
554└─────────────────────────
555
556<b>⚙️ 可选参数:</b>
557• <code>chat:-100xxx</code> - 指定群组ID(跨群查询)
558• <code>limit:100</code> - 限制最多移出100人
559• <code>search</code> - 仅搜索不移出(预览模式)
560
561<b>💡 使用示例:</b>

Callers 2

clean_memberFunction · 0.70
CleanMemberPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected