MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / updateProgressStatus

Function updateProgressStatus

codex_image/codex_image.ts:387–398  ·  view source on GitHub ↗
(phaseText: string)

Source from the content-addressed store, hash-verified

385 let currentPhaseText = initialStatus;
386 let heartbeatStopped = false;
387 const updateProgressStatus = async (phaseText: string): Promise<void> => {
388 currentPhaseText = phaseText;
389 const now = Date.now();
390 if (now - lastStatusUpdateAt < 1500) return;
391 lastStatusUpdateAt = now;
392 const elapsed = formatDuration(now - startedAt);
393 try {
394 await msg.edit({
395 text: `${phaseText}\n⏱️ 已耗时:${elapsed}`,
396 });
397 } catch {}
398 };
399
400 const heartbeat = (async () => {
401 while (!heartbeatStopped) {

Callers 1

handleCximgFunction · 0.85

Calls 2

formatDurationFunction · 0.70
editMethod · 0.45

Tested by

no test coverage detected