理论上优化了头像获取的速度

This commit is contained in:
Chenric
2024-09-18 22:32:10 +08:00
parent dc5293dbce
commit d4d3600f23
7 changed files with 241 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
from pydantic import BaseModel
from typing import Optional, List
from typing import Optional, List, Literal
from nonebot import get_driver, get_plugin_config
@@ -9,7 +9,7 @@ class ScopedConfig(BaseModel):
suffix: bool = False # 是否显示后缀
excluded_self: bool = True
visualization: bool = True # 是否可视化
counting_cache: bool = True
counting_cache: bool = False # 计数缓存(没有完工)
excluded_people: List[str] = [] # 排除的人的QQ号
timezone: Optional[str] = "Asia/Shanghai"
string_suffix: str = "统计花费时间:{timecost}" # 消息格式后缀