first commit

This commit is contained in:
Prometheus-first
2026-10-15 18:27:46 +08:00
commit 68eb19ea35
88 changed files with 10319 additions and 0 deletions
+12
View File
@@ -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)