From d408de29af85a96ddaf44023dcdc6610508c9b7a Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Mon, 10 Nov 2025 09:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dat=E5=AF=BC=E8=87=B4=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PWF | 2 +- Plugins/WPSAPI.py | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/PWF b/PWF index 7deef90..3632439 160000 --- a/PWF +++ b/PWF @@ -1 +1 @@ -Subproject commit 7deef9092a91225a7948352862bd7d9967f2704f +Subproject commit 36324398c39638a24e1f006416e96f9ebc4916ed diff --git a/Plugins/WPSAPI.py b/Plugins/WPSAPI.py index bca3616..7d31d29 100644 --- a/Plugins/WPSAPI.py +++ b/Plugins/WPSAPI.py @@ -159,18 +159,11 @@ class BasicWPSInterface(PluginInterface): return self.get_message_sender(webhook_url).send_link else: raise ValueError(f"Invalid message sender type: {type}") - - # 机器人名称模式(用于从@消息中提取) - AT_PATTERN = re.compile(r'@[^\s]+\s+(.+)', re.DOTALL) def parse_message_after_at(self, message: str) -> str: - # 去除首尾空格 - message = message.strip() - - # 尝试提取@后的内容 - at_match = BasicWPSInterface.AT_PATTERN.search(message) - if at_match: - return at_match.group(1).strip() + ''' + 已过时 + ''' return message async def send_markdown_message(self, message: str, chat_id: int, user_id: int) -> str|None: