Skip to content

Commit

Permalink
0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Aug 13, 2024
1 parent 5d84a50 commit 1cf266d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,14 @@ DRIVER=~fastapi+~httpx+~websockets
- 类型:`timedelta`
- 默认:`timedelta(days=30)`
- 说明:表情添加时间在该时间间隔以内时,添加 `new` 图标
- `label_hot_frequency`
- `label_hot_threshold`
- 类型:`int`
- 默认:`24`
- 说明:单位:次/天;表情调用频率超过该频率时,添加 `hot` 图标
- 默认:`21`
- 说明:单位:次;表情在 `label_hot_days` 内的调用次数超过该阈值时,添加 `hot` 图标
- `label_hot_days`
- 类型:`int`
- 默认:`7`
- 说明:单位:天;表情调用次数统计周期
- `memes_list_image_config``.env` 文件中的设置示例如下:

```
Expand All @@ -168,7 +172,8 @@ memes_list_image_config='
"text_template": "{keywords}",
"add_category_icon": true,
"label_new_timedelta": "P30D",
"label_hot_frequency": 24
"label_hot_threshold": 21,
"label_hot_days": 7
}
'
```
Expand Down Expand Up @@ -235,6 +240,16 @@ memes_list_image_config='

随机范围为 图片/文字 数量符合要求的表情

#### 表情调用统计

发送 “[我的][全局]<时间段>表情调用统计 [表情名]” 获取表情调用次数统计图

“我的”、“全局”、<时间段>、“表情名” 均为可选项

<时间段> 的关键词有:日、本日、周、本周、月、本月、年、本年

如:“我的今日表情调用统计 petpet”

### 相关插件

- [nonebot-plugin-send-anything-anywhere](https://github.com/felinae98/nonebot-plugin-send-anything-anywhere) 一个帮助处理不同 adapter 消息的适配和发送的插件
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_plugin_memes"
version = "0.7.3"
version = "0.7.4"
description = "Nonebot2 plugin for making memes"
authors = ["meetwq <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1cf266d

Please sign in to comment.