Skip to content

Commit 8d865db

Browse files
committed
0.4.4
1 parent 6030a71 commit 8d865db

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nonebot_plugin_memes_api"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
description = "Nonebot2 plugin for making memes"
55
authors = ["meetwq <meetwq@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)