From 30a974ad05beec27ab740072cc2ffaab664229c8 Mon Sep 17 00:00:00 2001 From: 2829798842 <2829798842@qq.com> Date: Wed, 28 May 2025 21:35:00 +0800 Subject: [PATCH] Update change_relationship.py --- src/tools/not_used/change_relationship.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/not_used/change_relationship.py b/src/tools/not_used/change_relationship.py index e543f3c5..de588937 100644 --- a/src/tools/not_used/change_relationship.py +++ b/src/tools/not_used/change_relationship.py @@ -34,8 +34,8 @@ class RelationshipTool(BaseTool): changed_value = function_args.get("changed_value") reason = function_args.get("reason") - return {"content": f"Because you just {reason}, your relationship value with the person who sent [{text}] has changed by {changed_value}"} + return {"content": f"因为你刚刚因为{reason},所以你和发[{text}]这条消息的人的关系值变化为{changed_value}"} except Exception as e: - logger.error(f"Error occurred while modifying relationship value: {str(e)}") - return {"content": f"Failed to modify relationship value: {str(e)}"} + logger.error(f"修改关系值时发生错误: {str(e)}") + return {"content": f"修改关系值失败: {str(e)}"}