重构:更新聊天流中打断计数的重置逻辑,简化元事件处理器的实现

This commit is contained in:
Windpicker-owo
2025-11-26 17:58:31 +08:00
parent d28ba27f26
commit 46a98fefc4
4 changed files with 7 additions and 78 deletions

View File

@@ -26,16 +26,4 @@ class MetaEventHandler:
async def handle_meta_event(self, raw: Dict[str, Any]):
"""处理元事件"""
# 简化版本:返回一个空的 MessageEnvelope
import time
import uuid
return {
"direction": "incoming",
"message_info": {
"platform": "qq",
"message_id": str(uuid.uuid4()),
"time": time.time(),
},
"message_segment": {"type": "text", "data": "[元事件]"},
"timestamp_ms": int(time.time() * 1000),
}
pass