Skip to content

Commit

Permalink
Update getnews.py
Browse files Browse the repository at this point in the history
  • Loading branch information
congxuma committed May 6, 2023
1 parent 35807f6 commit 1aab2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin_getnews/getnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1aab2ba

Please sign in to comment.