签到使用群昵称
This commit is contained in:
@@ -254,18 +254,15 @@ class SignInSystem:
|
|||||||
# if streak > 1 and not streak_broken:
|
# if streak > 1 and not streak_broken:
|
||||||
# output += "[爱心]"
|
# 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: # 只有在真的断签且之前有签到记录时才显示
|
if streak_broken and old_streak > 0: # 只有在真的断签且之前有签到记录时才显示
|
||||||
output += f"断开了 {old_streak} 天连签!"
|
output += f"断开了 {old_streak} 天连签!"
|
||||||
elif streak > 1:
|
elif streak > 1:
|
||||||
output += f"连签 {streak} 天!"
|
output += f"连签 {streak} 天!"
|
||||||
|
ats = ""
|
||||||
self.wcf.send_text(
|
ats += f" @{self.wcf.get_alias_in_chatroom(message.sender, message.roomid)}"
|
||||||
output,
|
self.wcf.send_text(f"{ats}\n{output}", message.roomid, message.sender)
|
||||||
(message.roomid if message.from_group() else message.sender),
|
|
||||||
message.sender
|
|
||||||
)
|
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""连接池由外部管理,不需要手动关闭"""
|
"""连接池由外部管理,不需要手动关闭"""
|
||||||
|
|||||||
Reference in New Issue
Block a user