mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
✨ 支持开发热重载插件,支持独立测试函数
This commit is contained in:
@ -47,6 +47,13 @@ class MarshoContext:
|
||||
if target_id in target_dict:
|
||||
target_dict[target_id].clear()
|
||||
|
||||
def reset_all(self):
|
||||
"""
|
||||
重置所有上下文
|
||||
"""
|
||||
self.contents["private"].clear()
|
||||
self.contents["non-private"].clear()
|
||||
|
||||
def build(self, target_id: str, is_private: bool) -> list:
|
||||
"""
|
||||
构建返回的上下文,不包括系统消息
|
||||
|
Reference in New Issue
Block a user