✨ 添加获取nb配置api

This commit is contained in:
HibiKier
2024-10-16 12:58:01 +08:00
parent fe1634eb2d
commit 792bcaa711
3 changed files with 15 additions and 3 deletions
@@ -108,7 +108,6 @@ async def _(bot_id: str | None = None) -> Result[list[BaseInfo]]:
day_call = await Statistics.filter(
create_time__gte=now - timedelta(hours=now.hour)
).count()
select_bot.config = driver.config
select_bot.day_call = day_call
select_bot.connect_count = await BotConnectLog.filter(
bot_id=select_bot.self_id
@@ -46,8 +46,6 @@ class BaseInfo(BaseModel):
is_select: bool = False
"""当前选择"""
config: Config | None
"""nb配置"""
day_call: int = 0
"""今日调用插件次数"""
version: str = "unknown"