From 1aab2ba784ea9fd215a1b8e95c95dd1f69ec236d Mon Sep 17 00:00:00 2001 From: congxu Date: Sat, 6 May 2023 19:40:26 +0800 Subject: [PATCH] Update getnews.py --- plugins/plugin_getnews/getnews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin_getnews/getnews.py b/plugins/plugin_getnews/getnews.py index 9c5af9c45..b10e7b7ca 100644 --- a/plugins/plugin_getnews/getnews.py +++ b/plugins/plugin_getnews/getnews.py @@ -55,7 +55,7 @@ def on_handle_context(self, e_context: EventContext): e_context['reply'] = reply e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑 - if re.match(r"我是.*", content): + if re.match(r"我是.*", content) and len(content) <= 12: reply = Reply() reply.type = ReplyType.TEXT