From 23df6c07073de35d4e8372e228ef7347ffd70fa5 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Mon, 19 Dec 2022 17:17:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=B9=E9=85=8D=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E=E5=8E=9F=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/qqbot/manager.py b/pkg/qqbot/manager.py index b97f8418..b3783d0e 100644 --- a/pkg/qqbot/manager.py +++ b/pkg/qqbot/manager.py @@ -46,8 +46,7 @@ def check_response_rule(text: str) -> (bool, str): import re match = re.match(rule, text) if match: - print(match) - return True, match.group(1) + return True, text return False, ""