mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-17 17:51:20 +08:00
feat: enhance context management with component registration and RPC function handling
This commit is contained in:
@@ -11,4 +11,4 @@ class HelloCommand(CommandComponent):
|
||||
async def hello(self, event: AstrMessageEvent):
|
||||
ret = await self.context.conversation_manager.new_conversation("hello")
|
||||
print(f"New conversation created: {ret}")
|
||||
yield event.plain_result("Hello, Astrbot!")
|
||||
yield event.plain_result(f"Hello, Astrbot! Created conversation ID: {ret}")
|
||||
|
||||
Reference in New Issue
Block a user