File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ DRIVER=~fastapi+~httpx+~websockets
122122 - 类型:` timedelta `
123123 - 默认:` timedelta(days=30) `
124124 - 说明:表情添加时间在该时间间隔以内时,添加 ` new ` 图标
125- - ` label_hot_frequency `
125+ - ` label_hot_threshold `
126126 - 类型:` int `
127- - 默认:` 24 `
128- - 说明:单位:次/天;表情调用频率超过该频率时,添加 ` hot ` 图标
127+ - 默认:` 21 `
128+ - 说明:单位:次;表情在 ` label_hot_days ` 内的调用次数超过该阈值时,添加 ` hot ` 图标
129+ - ` label_hot_days `
130+ - 类型:` int `
131+ - 默认:` 7 `
132+ - 说明:单位:天;表情调用次数统计周期
129133- ` memes_list_image_config ` 在 ` .env ` 文件中的设置示例如下:
130134
131135```
@@ -136,7 +140,8 @@ memes_list_image_config='
136140 "text_template": "{keywords}",
137141 "add_category_icon": true,
138142 "label_new_timedelta": "P30D",
139- "label_hot_frequency": 24
143+ "label_hot_threshold": 21,
144+ "label_hot_days": 7
140145}
141146'
142147```
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " nonebot_plugin_memes_api"
3- version = " 0.4.3 "
3+ version = " 0.4.4 "
44description = " Nonebot2 plugin for making memes"
55authors = [" meetwq <meetwq@gmail.com>" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments