签到使用群昵称

This commit is contained in:
liuwei
2025-03-18 09:05:11 +08:00
parent f28d145e30
commit 25febf1ac0

View File

@@ -254,18 +254,15 @@ class SignInSystem:
# if streak > 1 and not streak_broken:
# output += "[爱心]"
output = (f"@{wx_nick_name}签到,加[{points_to_add}]分,第[{today_signin_rank}]个!")
output = f"签到成功,加[{points_to_add}]分,第[{today_signin_rank}]个!"
if streak_broken and old_streak > 0: # 只有在真的断签且之前有签到记录时才显示
output += f"断开了 {old_streak} 天连签!"
elif streak > 1:
output += f"连签 {streak} 天!"
self.wcf.send_text(
output,
(message.roomid if message.from_group() else message.sender),
message.sender
)
ats = ""
ats += f" @{self.wcf.get_alias_in_chatroom(message.sender, message.roomid)}"
self.wcf.send_text(f"{ats}\n{output}", message.roomid, message.sender)
def __del__(self):
"""连接池由外部管理,不需要手动关闭"""