Skip to content

Commit 871ca19

Browse files
committed
fix[rock-s-p]:fix bug
1 parent 3ed070a commit 871ca19

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

run.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ def reply_message(msg):
2525
# logger.info(msg.sender)
2626
"""消息回复"""
2727
if type(msg.sender) == Group: # 所有群组消息
28-
if msg.sender.puid in ["20ed458a", "dc8c27cb"]: # 限定群组
29-
logger.info("=== start ===")
30-
replier.set_group(msg.sender.puid) # 获取群信息
31-
logger.info(msg.member.puid)
32-
if msg.type == "Note":
33-
replier.update_user_info(msg)
34-
typ, content1, content2 = replier.handle_group_msg(msg)
35-
if typ == 'text':
36-
msg.reply_msg(content1)
37-
elif typ == 'img':
38-
msg.reply_image(content1)
39-
elif typ == 'both':
40-
# msg.reply_image(content1)
41-
msg.sender.send_image(content1)
42-
sleep(1)
43-
msg.reply_msg(content2)
28+
#if msg.sender.puid in ["738c9fdb","20ed458a", "dc8c27cb"]: # 限定群组
29+
logger.info("=== start ===")
30+
replier.set_group(msg.sender.puid) # 获取群信息
31+
logger.info(msg.member.puid)
32+
if msg.type == "Note":
33+
replier.update_user_info(msg)
34+
typ, content1, content2 = replier.handle_group_msg(msg)
35+
if typ == 'text':
36+
msg.reply_msg(content1)
37+
elif typ == 'img':
38+
msg.reply_image(content1)
39+
elif typ == 'both':
40+
# msg.reply_image(content1)
41+
msg.sender.send_image(content1)
42+
sleep(1)
43+
msg.reply_msg(content2)
4444
# else: # todo 私聊消息
4545
# replier.handle_solo_msg(msg)
4646
# logger.info(msg)

0 commit comments

Comments
 (0)