koishi-plugin-imx 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules/mx-space.js +5 -5
- package/package.json +1 -1
package/lib/modules/mx-space.js
CHANGED
|
@@ -375,16 +375,16 @@ function setupCommands(ctx, config, logger) {
|
|
|
375
375
|
.action(async ({ session }) => {
|
|
376
376
|
try {
|
|
377
377
|
const data = await apiClient.aggregate.getStat();
|
|
378
|
-
const { posts, notes, comments, links, says, recently, today_ip_access_count
|
|
378
|
+
const { posts, notes, comments, links, says, recently, today_ip_access_count, today_max_online, today_online_total, unread_comments, link_apply, call_time, online } = data;
|
|
379
379
|
const replyPrefix = config.commands?.replyPrefix || '来自 Mix Space 的';
|
|
380
380
|
return `📊 ${replyPrefix}统计信息:\n\n` +
|
|
381
381
|
`📝 文章 ${posts} 篇,📔 记录 ${notes} 篇\n` +
|
|
382
382
|
`💬 评论 ${comments} 条,🔗 友链 ${links} 条\n` +
|
|
383
383
|
`💭 说说 ${says} 条,⚡ 速记 ${recently} 条\n\n` +
|
|
384
|
-
`🔔 未读评论 ${
|
|
385
|
-
`📈 今日访问 ${
|
|
386
|
-
`📊 总计在线 ${
|
|
387
|
-
`🟢 当前在线 ${online} 人`;
|
|
384
|
+
`🔔 未读评论 ${unread_comments || 0} 条,📮 友链申请 ${link_apply || 0} 条\n` +
|
|
385
|
+
`📈 今日访问 ${today_ip_access_count || 0} 次,👥 最高在线 ${today_max_online || 0} 人\n` +
|
|
386
|
+
`📊 总计在线 ${today_online_total || 0} 人,🔄 调用 ${call_time || 0} 次\n` +
|
|
387
|
+
`🟢 当前在线 ${online || 0} 人`;
|
|
388
388
|
}
|
|
389
389
|
catch (error) {
|
|
390
390
|
logger.error('获取统计信息失败:', error);
|