feat:消息为链接时,交由第三方处理

This commit is contained in:
jxxghp
2025-05-18 13:22:42 +08:00
parent 923ecf29b8
commit e8ed2454a1

View File

@@ -422,13 +422,17 @@ class MessageChain(ChainBase):
or text.find("继续") != -1:
# 聊天
content = text
action = "chat"
action = "Chat"
elif text.startswith("http"):
# 链接
content = text
action = "Link"
else:
# 搜索
content = text
action = "Search"
if action != "chat":
if action in ["Search", "ReSearch", "Subscribe", "ReSubscribe"]:
# 搜索
meta, medias = self.mediachain.search(content)
# 识别