koishi-plugin-ggcevo-game 1.2.12 → 1.2.13
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/index.js +3 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1701,15 +1701,14 @@ ${achievementList.join("\n")}`;
|
|
|
1701
1701
|
const message = [
|
|
1702
1702
|
`📺 监测到违规大厅 ID: ${lobby.id}`,
|
|
1703
1703
|
`创建时间: ${new Date(lobby.createdAt).toLocaleString("zh-CN")}`,
|
|
1704
|
-
|
|
1705
|
-
🚨 违规玩家(${violators.length} 人):`,
|
|
1706
|
-
// 合并两行并添加换行符
|
|
1704
|
+
`🚨 违规玩家(${violators.length} 人):`,
|
|
1707
1705
|
...violators.map((v) => {
|
|
1708
1706
|
const record = punishmentRecords.find((r) => r.handle === v.handle);
|
|
1709
1707
|
return `· ${v.name}(${record?.level}级处罚)`;
|
|
1710
1708
|
}),
|
|
1711
1709
|
`房主: ${lobby.hostName}`,
|
|
1712
|
-
`玩家数: ${lobby.slotsHumansTaken}/${lobby.slotsHumansTotal}
|
|
1710
|
+
`玩家数: ${lobby.slotsHumansTaken}/${lobby.slotsHumansTotal}`,
|
|
1711
|
+
`🏆 安全玩家:${atElements || "无"}`
|
|
1713
1712
|
].join("\n");
|
|
1714
1713
|
await ctx.broadcast(config.groupId, message);
|
|
1715
1714
|
processedLobbies.add(lobby.id);
|