迁移napcat插件至built_in

This commit is contained in:
Windpicker-owo
2025-09-06 03:38:43 +08:00
parent d05e2f9ee4
commit 6c042cc73f
38 changed files with 243 additions and 81 deletions

View File

@@ -121,7 +121,7 @@ class CycleDetail:
self.loop_action_info = loop_info["loop_action_info"]
async def send_typing():
async def send_typing(user_id):
"""
发送打字状态指示
@@ -139,6 +139,11 @@ async def send_typing():
group_info=group_info,
)
from plugin_system.core.event_manager import event_manager
from src.plugins.built_in.napcat_adapter_plugin.event_types import NapcatEvent
# 设置正在输入状态
await event_manager.trigger_event(NapcatEvent.PERSONAL.SET_INPUT_STATUS,user_id=user_id,event_type=1)
await send_api.custom_to_stream(
message_type="state", content="typing", stream_id=chat.stream_id, storage_message=False
)