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

Function formatDate

sum/sum.ts:37–44  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

35 const hours = String(date.getHours()).padStart(2, "0");
36 const minutes = String(date.getMinutes()).padStart(2, "0");
37 return `${year}-${month}-${day} ${hours}:${minutes}`;
38}
39
40type ProviderProtocol = "auto" | "chat" | "responses" | "gemini" | "anthropic";
41
42type CustomProvider = {
43 name: string;
44 base_url: string;
45 api_key: string;
46 model: string;
47 // 旧配置中的 openai 会在读取时自动迁移为 auto。

Callers 4

getGroupMessagesFunction · 0.70
getGroupMessagesByTimeFunction · 0.70
executeSummaryFunction · 0.70
SummaryPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected