koishi-plugin-chat-analyse 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -710,10 +710,8 @@ var WhoAt = class {
710
710
  const userInfoMap = new Map(users.map((u) => [u.uid, { name: u.userName, id: u.userId }]));
711
711
  const messageElements = records.map((record) => {
712
712
  const senderInfo = userInfoMap.get(record.uid);
713
- return (0, import_koishi4.h)("message", {}, [
714
- (0, import_koishi4.h)("author", { userId: senderInfo.id, nickname: senderInfo.name }),
715
- import_koishi4.h.text(record.content)
716
- ]);
713
+ const author = (0, import_koishi4.h)("author", { id: senderInfo.id, name: senderInfo.name });
714
+ return (0, import_koishi4.h)("message", {}, [author, import_koishi4.h.text(record.content)]);
717
715
  });
718
716
  return (0, import_koishi4.h)("message", { forward: true }, messageElements);
719
717
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chat-analyse",
3
3
  "description": "强大而全面的聊天数据分析,支持统计命令,发言,消息类型,活跃度,支持发言排行和生成词云",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "contributors": [
6
6
  "Yis_Rime <yis_rime@outlook.com>"
7
7
  ],