We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe2b4c commit c8de229Copy full SHA for c8de229
1 file changed
astrbot/core/pipeline/respond/stage.py
@@ -38,7 +38,7 @@ class RespondStage(Stage):
38
Comp.Share: lambda comp: bool(comp.url) or bool(comp.title),
39
Comp.Music: lambda comp: (comp.id and comp.type and comp.type != 'custom') or (comp.type == 'custom' and comp.url and comp.audio and comp.title), # 音乐分享
40
Comp.Forward: lambda comp: bool(comp.id), # 合并转发
41
- Comp.Location: lambda comp: bool(comp.lat and comp.lon), # 位置
+ Comp.Location: lambda comp: bool(comp.lat is not None and comp.lon is not None), # 位置
42
Comp.Contact: lambda comp: bool(comp.type and comp.id), # 推荐好友 or 群
43
Comp.Shake: lambda _: True, # 窗口抖动(戳一戳)
44
Comp.Anonymous: lambda _: True, # 匿名发消息
0 commit comments