缓存与重建缓存指令

This commit is contained in:
Chenric
2024-09-27 21:04:50 +08:00
parent ed7f1167f2
commit ea682ef18d
7 changed files with 150 additions and 46 deletions

View File

@@ -7,11 +7,11 @@ class ScopedConfig(BaseModel):
get_num: int = 5 # 获取人数数量
font: str = "SimHei" # 字体格式
suffix: bool = False # 是否显示后缀
excluded_self: bool = True
excluded_self: bool = True # 是否排除自己
visualization: bool = True # 是否可视化
counting_cache: bool = False # 计数缓存(没有完工)
counting_cache: bool = True # 计数缓存(能够提高回复速度)
excluded_people: List[str] = [] # 排除的人的QQ号
timezone: Optional[str] = "Asia/Shanghai"
timezone: Optional[str] = "Asia/Shanghai" # 时区,影响统计时间
string_suffix: str = "统计花费时间:{timecost}" # 消息格式后缀
template_path: str = "./template/rank_template.j2" # 模板路径
string_format: str = "{index}名:\n{nickname},{chatdatanum}条消息\n" # 消息格式