Metadata-Version: 2.4
Name: nonebot-plugin-group-heat
Version: 0.1.3
Summary: 群热度统计插件 - 实时查询群内热度，生成昨日热度折线图
Author-email: Wojusensei <3442006415@qq.com>
License: MIT
Project-URL: Homepage, https://github.com/Wojusensei/nonebot-plugin-group-heat
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: nonebot2>=2.3.0
Requires-Dist: nonebot-adapter-onebot>=2.0.0
Requires-Dist: nonebot-plugin-localstore>=0.5.0
Requires-Dist: matplotlib>=3.5.0
Requires-Dist: numpy>=1.21.0
Requires-Dist: twine>=6.2.0

# nonebot-plugin-group-heat

群热度统计插件 for NoneBot2

## 功能

- `/群热度` - 获取过去30分钟的群热度值，附带 bot 评价
- `/昨日热度图` - 生成昨日每30分钟的热度折线图，并显示平均热度

## 热度计算规则

| 消息类型 | 热度值 |
|---------|--------|
| 文本消息 | +0.05 |
| 表情包 | +0.20 |
| 文件（图片/视频/语音等） | +0.30 |
| 其他消息 | 不计入 |

- 每个统计周期的初始热度为 -10°

## 评价机制

| 热度范围 | 评价 |
|---------|------|
| < 0 | 群成冰块啦，群主快开暖气 |
| 0 ~ 10 | 是冬天到了吗，好冷www |
| 10 ~ 20 | 温度非常舒适，大家继续努力~ |
| 20 ~ 30 | 群热度达到最佳状态！ |
| 30 ~ 39 | 好热，群主快开空调！ |
| ≥ 39 | 请发送高温补贴喵。。 |

## 安装

```bash
nb plugin install nonebot-plugin-group-heat
pip install nonebot-plugin-group-heat(也可以)

## 使用
在群聊中发送以下命令：

/群热度 - 查询过去30分钟的群热度

/昨日热度图 - 获取昨日热度折线图

## 开源协议
MIT
