@全体 解析支持

pull/67/head
foxplaying 2025-10-28 23:18:32 +08:00 committed by GitHub
parent fce15a4311
commit 1169ab335b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -666,6 +666,8 @@ class MessageHandler:
message_data: dict = raw_message.get("data") message_data: dict = raw_message.get("data")
if message_data: if message_data:
qq_id = message_data.get("qq") qq_id = message_data.get("qq")
if qq_id == "all":
return Seg(type="text", data=f"@全体成员")
if str(self_id) == str(qq_id): if str(self_id) == str(qq_id):
logger.debug("机器人被at") logger.debug("机器人被at")
self_info: dict = await get_self_info(self.server_connection) self_info: dict = await get_self_info(self.server_connection)