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)