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

Function sendLongResult

admin_board/admin_board.ts:181–196  ·  view source on GitHub ↗
(msg: Api.Message, text: string)

Source from the content-addressed store, hash-verified

179 message: `📋 <b>续 ${index}/${chunks.length - 1}</b>\n\n${chunks[index]}`,
180 parseMode: "html",
181 linkPreview: false,
182 });
183 }
184}
185
186function formatDaysAgo(date: Date): string {
187 const diffDays = Math.floor((Date.now() - date.getTime()) / DAY_MS);
188 return `${Math.max(0, diffDays)} 天前`;
189}
190
191function formatAvgPerDay(value: number): string {
192 return value.toFixed(2).replace(/\.?0+$/, "");
193}
194
195function getLastOnlineDays(user: Api.User): number | null {
196 if (!user.status) return null;
197 if (
198 user.status instanceof Api.UserStatusOnline ||
199 user.status instanceof Api.UserStatusRecently

Callers 3

handleSeatActionFunction · 0.85
handleTrimActionFunction · 0.85
AdminBoardPluginClass · 0.85

Calls 2

splitLongTextFunction · 0.85
editMethod · 0.45

Tested by

no test coverage detected