mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: exempt WebChat from friend wake prefix (#9215)
This commit is contained in:
@@ -138,7 +138,10 @@ class WakingCheckStage(Stage):
|
||||
event.is_at_or_wake_command = True
|
||||
break
|
||||
# 检查是否是私聊
|
||||
if event.is_private_chat() and not self.friend_message_needs_wake_prefix:
|
||||
if event.is_private_chat() and (
|
||||
not self.friend_message_needs_wake_prefix
|
||||
or event.get_platform_name() == "webchat"
|
||||
):
|
||||
is_wake = True
|
||||
event.is_wake = True
|
||||
event.is_at_or_wake_command = True
|
||||
|
||||
Reference in New Issue
Block a user