Skip to content

Commit 66d0f0a

Browse files
committed
chore: remove deprecated websearch command from event filter
1 parent 2a7b4f6 commit 66d0f0a

File tree

1 file changed

+1
-10
lines changed
  • astrbot/builtin_stars/web_searcher

1 file changed

+1
-10
lines changed

astrbot/builtin_stars/web_searcher/main.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from readability import Document
99

1010
from astrbot.api import AstrBotConfig, llm_tool, logger, sp, star
11-
from astrbot.api.event import AstrMessageEvent, MessageEventResult, filter
11+
from astrbot.api.event import AstrMessageEvent, filter
1212
from astrbot.api.provider import ProviderRequest
1313
from astrbot.core.provider.func_tool_manager import FunctionToolManager
1414

@@ -196,15 +196,6 @@ async def _extract_tavily(self, cfg: AstrBotConfig, payload: dict) -> list[dict]
196196
)
197197
return results
198198

199-
@filter.command("websearch")
200-
async def websearch(self, event: AstrMessageEvent, oper: str | None = None) -> None:
201-
"""网页搜索指令(已废弃)"""
202-
event.set_result(
203-
MessageEventResult().message(
204-
"此指令已经被废弃,请在 WebUI 中开启或关闭网页搜索功能。",
205-
),
206-
)
207-
208199
@llm_tool(name="web_search")
209200
async def search_from_search_engine(
210201
self,

0 commit comments

Comments
 (0)