签到回复优化
This commit is contained in:
@@ -241,18 +241,25 @@ class SignInSystem:
|
|||||||
message.sender, message.roomid, wx_nick_name, points_to_add, current_time, streak
|
message.sender, message.roomid, wx_nick_name, points_to_add, current_time, streak
|
||||||
))
|
))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
output = ("\n"
|
# output = ("\n"
|
||||||
f"-----Bot-----\n"
|
# f"-----Bot-----\n"
|
||||||
f"@{wx_nick_name} 签到成功!\n"
|
# f"@{wx_nick_name} 签到成功!\n"
|
||||||
f"签到成功!你领到了 {points_to_add} 个积分!✅\n"
|
# f"签到成功!你领到了 {points_to_add} 个积分!✅\n"
|
||||||
f"你是今天第 {today_signin_rank} 个签到的!🎉\n")
|
# f"你是今天第 {today_signin_rank} 个签到的!🎉\n")
|
||||||
|
#
|
||||||
|
# if streak_broken and old_streak > 0: # 只有在真的断签且之前有签到记录时才显示
|
||||||
|
# output += f"你断开了 {old_streak} 天的连续签到![心碎]"
|
||||||
|
# elif streak > 1:
|
||||||
|
# output += f"你连续签到了 {streak} 天!"
|
||||||
|
# if streak > 1 and not streak_broken:
|
||||||
|
# output += "[爱心]"
|
||||||
|
|
||||||
|
output = (f"@{wx_nick_name} 加[{points_to_add}]分,第[{today_signin_rank}]个!\n")
|
||||||
|
|
||||||
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} 天!"
|
||||||
if streak > 1 and not streak_broken:
|
|
||||||
output += "[爱心]"
|
|
||||||
|
|
||||||
self.wcf.send_text(
|
self.wcf.send_text(
|
||||||
output,
|
output,
|
||||||
|
|||||||
Reference in New Issue
Block a user