Skip to content

Commit 70c3f99

Browse files
committed
fix(pipeline): skip waking on empty messages
1 parent 2e16281 commit 70c3f99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • astrbot/core/pipeline/waking_check

astrbot/core/pipeline/waking_check/stage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ async def process(
143143
event.is_at_or_wake_command = True
144144
wake_prefix = ""
145145

146+
if is_wake and not event.message_str and not messages:
147+
event.stop_event()
148+
return
149+
146150
# 检查插件的 handler filter
147151
activated_handlers = []
148152
handlers_parsed_params = {} # 注册了指令的 handler

0 commit comments

Comments
 (0)