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.
@@ -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: todayIpAccessCount, today_max_online: todayMaxOnline, today_online_total: todayOnlineTotal, unread_comments: unreadComments, link_apply: linkApply, call_time: callTime, online } = data;
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
- `🔔 未读评论 ${unreadComments} 条,📮 友链申请 ${linkApply} 条\n` +
385
- `📈 今日访问 ${todayIpAccessCount} 次,👥 最高在线 ${todayMaxOnline} 人\n` +
386
- `📊 总计在线 ${todayOnlineTotal} 人,🔄 调用 ${callTime} 次\n` +
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-imx",
3
3
  "description": "Mix-Space Bot for Koishi - 集成多种功能的聊天机器人插件",
4
- "version": "2.2.6",
4
+ "version": "2.2.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [