新增潜水排行

This commit is contained in:
liuwei
2026-01-20 17:08:31 +08:00
parent 05949bdf67
commit 8e00c0078c

View File

@@ -112,7 +112,7 @@ class InactiveRankPlugin(MessagePluginInterface):
await bot.send_text_message(roomid, f"📉 {days}天内暂无潜水成员", sender)
return True, "暂无数据"
lines = [f"(≥{days}天 未发言,前{limit}名)"]
lines = [f"📉潜水排行榜 \n(≥{days}天 未发言,前{limit}名)"]
for i, r in enumerate(rows, 1):
name = (r.get("nick_name") or r.get("wxid") or "").strip()
inactivity = int(r.get("inactivity_days", 0))