加入了openclaw插件,用于与openclaw对接
This commit is contained in:
@@ -185,6 +185,7 @@ class OpenClawPlugin(MessagePluginInterface):
|
|||||||
return jsonify({"error": "unauthorized"}), 401
|
return jsonify({"error": "unauthorized"}), 401
|
||||||
|
|
||||||
data = request.get_json(silent=True) or {}
|
data = request.get_json(silent=True) or {}
|
||||||
|
logger.debug("openclaw data:{data}")
|
||||||
to = data.get("to")
|
to = data.get("to")
|
||||||
text = data.get("text") or data.get("content")
|
text = data.get("text") or data.get("content")
|
||||||
reply_to = data.get("replyToMessageId")
|
reply_to = data.get("replyToMessageId")
|
||||||
|
|||||||
Reference in New Issue
Block a user