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 19, 2023
1 parent b26ee20 commit 930898a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/plugin_getnews/getnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def on_handle_context(self, e_context: EventContext):

e_context['reply'] = reply
e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑

if content == "请重试":
e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑

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

0 comments on commit 930898a

Please sign in to comment.