AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]4.0版本禁用astrbot-reminder插件,LLM还是触发

Open siciyuanweilai opened this issue 1 year ago • 0 comments

发生了什么

如题,禁用之后发送包含“提醒”还是触发该插件

Image

如何复现?

上面已描述清楚

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

版本:AstrBot v4.0.0 部署方式:Windows 消息平台适配器:aiocqhttp

操作系统

Windows

报错日志

[15:33:40] [Core] [INFO] [core.event_bus:52]: [default] [Bot(aiocqhttp)] 昵称/QQ号: 提醒你每天晚上十点睡觉??
[15:33:40] [Core] [INFO] [core.curfew_manager:193]: 未找到宵禁数据文件,跳过加载。 [15:33:58] [Core] [INFO] [respond.stage:146]: 消息为空,跳过发送阶段 [15:33:58] [Core] [INFO] [runners.tool_loop_agent_runner:187]: Agent 使用工具: ['reminder'] [15:33:58] [Core] [INFO] [runners.tool_loop_agent_runner:199]: 使用工具:reminder,参数:{'cron_expression': '0 22 * * *', 'human_readable_cron': '每天晚上10点', 'text': '睡觉'} [15:33:58] [Core] [ERRO] [pipeline.context_utils:58]: Previous Error: None [15:33:58] [Core] [WARN] [runners.tool_loop_agent_runner:316]: Traceback (most recent call last): File "C:\AstrBotLauncher\AstrBot\astrbot\core\agent\runners\tool_loop_agent_runner.py", line 213, in _handle_function_tools async for resp in executor: ...<98 lines>... ) File "C:\AstrBotLauncher\AstrBot\astrbot\core\pipeline\process_stage\method\llm_request.py", line 66, in execute async for r in cls._execute_local(tool, run_context, **tool_args): yield r File "C:\AstrBotLauncher\AstrBot\astrbot\core\pipeline\process_stage\method\llm_request.py", line 178, in _execute_local async for resp in wrapper: ...<13 lines>... yield None File "C:\AstrBotLauncher\AstrBot\astrbot\core\pipeline\context_utils.py", line 59, in call_handler raise e File "C:\AstrBotLauncher\AstrBot\astrbot\core\pipeline\context_utils.py", line 42, in call_handler async for ret in ready_to_call: ...<10 lines>... yield ret File "C:\AstrBotLauncher\AstrBot\packages\reminder\main.py", line 119, in reminder_tool if event.unified_msg_origin not in self.reminder_data: ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'reminder_data'

[15:34:04] [Core] [INFO] [respond.stage:212]: AstrBot -> 昵称/QQ号: 设置失败了 晚点再试试吧

你愿意提交 PR 吗?

  • [ ] 是的,我愿意提交 PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

siciyuanweilai avatar Sep 11 '25 07:09 siciyuanweilai