1 parent
e83a9e116f
commit
0b7e09826c
1 file changed
+2
@@ -78,10 +78,12 @@ def process_message_callback(
|
|||||||
|
|
||||||
if not message_data.get("mentions"):
|
if not message_data.get("mentions"):
|
||||||
# 忽略非@人的消息
|
# 忽略非@人的消息
|
||||||
|
lark.logger.info("忽略非@人的消息")
|
||||||
return
|
return
|
||||||
|
|
||||||
if message_data.get("mentions").get("name") != "官方应用指令":
|
if message_data.get("mentions").get("name") != "官方应用指令":
|
||||||
# 忽略@官方应用指令的消息
|
# 忽略@官方应用指令的消息
|
||||||
|
lark.logger.info("忽略非@官方应用的消息")
|
||||||
return
|
return
|
||||||
|
|
||||||
message_content = ""
|
message_content = ""
|
||||||
|
|||||||
Reference in new issue
Block a user