修复签到bug
This commit is contained in:
@@ -158,6 +158,8 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
Returns:
|
||||
int: 奖励积分数量
|
||||
"""
|
||||
points = 0
|
||||
if success:
|
||||
sender = message.get("sender")
|
||||
roomid = message.get("roomid", "")
|
||||
|
||||
@@ -240,7 +242,7 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
if sign_stat >= today_start:
|
||||
self.message_util.send_text_msg(f"您今天已经签到过了!共获得积分:{user_record['points']}",
|
||||
(roomid if roomid else sender), sender)
|
||||
return True, "已签到"
|
||||
return False, "已签到"
|
||||
|
||||
streak = 0
|
||||
streak_broken = False
|
||||
|
||||
Reference in New Issue
Block a user