first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""沿用原项目三参数消息回调:test 返回当前会话 ID。"""
|
||||
|
||||
|
||||
class Plugin:
|
||||
def on_message(self, msg_type, data, service):
|
||||
if msg_type != 11046:
|
||||
return
|
||||
content = data.get("msg") or data.get("content") or ""
|
||||
if content.strip().lower() == "test":
|
||||
target = data.get("room_wxid") or data.get("from_wxid")
|
||||
if target:
|
||||
service.send_text(target, target)
|
||||
Reference in New Issue
Block a user