From 36c192ff6bc9a1bd7c92cb336ebf3d6ff1b0eb5c Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 12 Jan 2024 14:31:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20resend=20=E5=91=BD=E4=BB=A4=E5=A4=B1?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/cmds/session/resend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/qqbot/cmds/session/resend.py b/pkg/qqbot/cmds/session/resend.py index c71b624d..941afb55 100644 --- a/pkg/qqbot/cmds/session/resend.py +++ b/pkg/qqbot/cmds/session/resend.py @@ -15,7 +15,7 @@ def process(cls, ctx: aamgr.Context) -> tuple[bool, list]: from ....openai import session as openai_session from ....utils import context from ....qqbot import message - import config + session_name = ctx.session_name reply = [] @@ -24,6 +24,8 @@ def process(cls, ctx: aamgr.Context) -> tuple[bool, list]: mgr = context.get_qqbot_manager() + config = context.get_config_manager().data + reply = message.process_normal_message(to_send, mgr, config, ctx.launcher_type, ctx.launcher_id, ctx.sender_id)