feat: 新增 Provider 注册接口;新增 provider 指令

This commit is contained in:
Soulter
2024-07-27 04:25:27 -04:00
parent d977dbe9a7
commit 84c450aef9
10 changed files with 70 additions and 17 deletions
+2 -1
View File
@@ -73,7 +73,8 @@ class CommandManager():
if message_str.startswith(command):
logger.info(f"触发 {command} 指令。")
command_result = await self.execute_handler(command, message_event, context)
return command_result
if command_result.hit:
return command_result
async def execute_handler(self,
command: str,