Skip to content

Commit

Permalink
Update getnews.py
Browse files Browse the repository at this point in the history
  • Loading branch information
congxuma committed Jun 1, 2023
1 parent ad55738 commit 17b7f74
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 content == "请重试" OR re.match(r"。.*", content):
if content == "请重试" or re.match(r"。.*", content):
e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑

if re.search(r"微博|weibo|wb", content) and len(content) <= 5:
Expand Down

0 comments on commit 17b7f74

Please sign in to comment.