1 parent
c9af0f5158
commit
e3ede40368
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user