Skip to content

Commit ec3696c

Browse files
committed
fix[red_bag]: red_bag_bug
1 parent 150ca15 commit ec3696c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

common/message_replier.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,10 @@ def red_bag(self, msg)-> tuple:
272272
print("=====")
273273
result = self.user.transfer(bot_id, user_puid, self.group.puid, 3, self.api_key)
274274
self.red_bag_num -=1
275-
return 'text','红包拿好!',''
276-
# if result["status"] == "success":
277-
# return 'text'," 口令正确!奖励 1 个超越积分!", ''
278-
# else:
279-
# return 'text','红包领完啦!',''
275+
if result["status"] == "success":
276+
return 'text'," 口令正确!奖励给" + msg.member.name + " 3 个超越积分!", ''
277+
else:
278+
return 'text','红包领完啦!',''
280279
return empty_result
281280

282281
def draw_lots(self, msg)-> tuple:

0 commit comments

Comments
 (0)