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

Function sortAdminStats

admin_board/admin_board.ts:652–662  ·  view source on GitHub ↗
(stats: AdminStat[])

Source from the content-addressed store, hash-verified

650}
651
652function pickStableText(seed: string, options: string[]): string {
653 let hash = 0;
654 for (let index = 0; index < seed.length; index++) {
655 hash = (hash * 33 + seed.charCodeAt(index)) >>> 0;
656 }
657 return options[hash % options.length];
658}
659
660function buildSortComment(
661 stat: AdminStat,
662 index: number,
663 total: number,
664): string {
665 const avg = stat.sortAvgPerDay;

Callers 1

collectAdminStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected