From af6d1fb25600486f4e4070efb66729c1fbeb88b2 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Wed, 4 May 2022 14:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B4=BE=E8=92=99=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E3=80=81=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86=E5=8A=A0?= =?UTF-8?q?=E5=A5=BD=E5=8F=8B=E5=92=8C=E5=8A=A0=E7=BE=A4=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_Plugins/chat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Paimon_Plugins/chat.py b/Paimon_Plugins/chat.py index 491b0ad..0d7c9d8 100644 --- a/Paimon_Plugins/chat.py +++ b/Paimon_Plugins/chat.py @@ -39,7 +39,7 @@ chat_lmt = FreqLimiter2(60) def create_matcher(chat_word: str, pattern: str, cooldown: int, pro: float, responses): - hammer = on_regex(pattern, priority=16, temp=True) + hammer = on_regex(pattern, priority=14, temp=True) @hammer.handle() async def handler(event: GroupMessageEvent): @@ -55,7 +55,6 @@ def create_matcher(chat_word: str, pattern: str, cooldown: int, pro: float, resp if '.mp3' not in response: await hammer.finish(response) else: - print(os.path.join(res_path, response)) await hammer.finish(MessageSegment.record(file=Path(os.path.join(res_path, response)))) except FinishedException: raise