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

Method showStats

pangu/pangu.ts:500–512  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

498 `• 已格式化消息:${stats.formattedMessages}\n` +
499 `• 启用会话数:${stats.enabledChats}\n` +
500 `• 最后格式化:${stats.lastFormatted ? new Date(stats.lastFormatted).toLocaleString() : "从未"}\n` +
501 `• 白名单数量:${this.db.data.whitelist.length}\n` +
502 `• 黑名单数量:${this.db.data.blacklist.length}\n` +
503 `• 自定义设置会话数:${Object.keys(this.db.data.chats).length}`,
504 parseMode: "html"
505 });
506 }
507
508 // 命令处理器
509 cmdHandlers: Record<string, (msg: Api.Message, trigger?: Api.Message) => Promise<void>> = {
510 pangu: async (msg: Api.Message) => {
511 try {
512 if (!this.db) return;
513 const text = msg.text || "";
514 const args = text.trim().split(/\s+/);
515 const chatId = this.getChatId(msg);

Callers 1

PanguPluginClass · 0.95

Calls 1

editMethod · 0.45

Tested by

no test coverage detected