fix print
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-05-28 16:28:11 +08:00
1 parent c9af0f5158
commit e3ede40368
1 file changed
+3 -1
+3 -1
View File
@@ -81,7 +81,9 @@ def process_message_callback(
lark.logger.info("忽略非@人的消息")
return
if message_data.get("mentions").get("name") != "官方应用指令":
mentions_data = message_data.get("mentions")
if "官方应用指令" not in [mention.get("name") for mention in mentions_data]:
# 忽略@官方应用指令的消息
lark.logger.info("忽略非@官方应用的消息")
return