Skip to content

v0.5.1 · 只把真正的 @ 当点名

Choose a tag to compare

@NeverENG NeverENG released this 28 Oct 11:16
· 44 commits to main since this release
0186822

0.5.1

修复 0.5.0 的开口策略误判:

  • 只把真正的 @ 当点名:wake_prefix 为空时 AstrBot 会标记每条群消息为唤醒,之前映射层据此认为"所有消息都在 @ 她",导致陌生人闲聊也会回复;现在只认消息组件里指向 self_id 的 At
  • 策略参数配置化:
    • attention_policy_enabled(总开关,默认开)
    • attention_followup_rounds(点名后陪聊轮数,默认 3)
    • attention_owner_always_reply(主人是否每条都回,默认开)
    • attention_address_names(叫名字等同 @,默认「大肥鱼,肥鱼」)

行为:主人每条都回;私聊必回;陌生人只在被 @ / 叫名字时回,并陪聊 3 轮;其余群消息静默。