mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-02 08:29:51 +00:00
更好的缓存,扬掉global,重构代码,整理聊天逻辑 (#16)
* 实现缓存装饰器,优化数据获取和存储逻辑
* 重构代码,准备将聊天请求逻辑移入MarshoHandler
* 记录点(
* unfinished
* 🎨 重写基本完毕
* 移除未使用import,添加漏掉的换行
This commit is contained in:
@ -19,7 +19,7 @@ class SessionContext(BaseModel):
|
||||
bot: Bot
|
||||
event: Event
|
||||
matcher: Matcher
|
||||
state: T_State
|
||||
# state: T_State
|
||||
caller: Any = None
|
||||
|
||||
class Config:
|
||||
@ -30,5 +30,5 @@ class SessionContextDepends(BaseModel):
|
||||
bot: str | None = None
|
||||
event: str | None = None
|
||||
matcher: str | None = None
|
||||
state: str | None = None
|
||||
# state: str | None = None
|
||||
caller: str | None = None
|
||||
|
Reference in New Issue
Block a user