From 95104d2c20f667d4b567b624689985ccfe662348 Mon Sep 17 00:00:00 2001 From: foxplaying <166147707+foxplaying@users.noreply.github.com> Date: Thu, 16 Oct 2025 04:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recv_handler/notice_handler.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/recv_handler/notice_handler.py b/src/recv_handler/notice_handler.py index 848a09a..f82afb0 100644 --- a/src/recv_handler/notice_handler.py +++ b/src/recv_handler/notice_handler.py @@ -295,19 +295,23 @@ class NoticeHandler: elif user_id == self_id: if sub_type == "leave": text = "(你)退出了群" + logger.info(f"群 {group_id} Bot退出了群") elif sub_type == "kick": text = f"(你)被 {operator_name} 移出" + logger.info(f"群 {group_id} Bot被 {operator_id} 移出") else: text = f"(你)离开群(方式: {sub_type})" - logger.info(f"群 {group_id} Bot{text.replace('(你)', '')}") + logger.info(f"群 {group_id} Bot离开群(方式: {sub_type})") else: if sub_type == "leave": text = f"退出了群" + logger.info(f"群 {group_id} 用户 {user_id} {text}") elif sub_type == "kick": text = f"被 {operator_name} 移出" + logger.info(f"群 {group_id} 用户 {user_id} 被 {operator_id} 移出") else: text = f"离开群(方式: {sub_type})" - logger.info(f"群 {group_id} 用户 {user_id} {text}") + logger.info(f"群 {group_id} 用户 {user_id} {text}") handled_message = Seg(type="text", data=text) user_info = UserInfo( platform=global_config.maibot_server.platform_name,