NoneBot 复读行为统计插件
Project description
nonebot-plugin-repeater-count
✨ 群聊复读行为统计插件 ✨
功能说明
自动记录规则
- 当连续两条相同消息且由不同用户发送时,视为有效复读行为
- 自动记录以下三类数据:
- 📊 复读用户(触发复读行为的用户)
- 😇 被复读用户(原始消息发送者)
- 🔠 复读词汇(被复读的原始消息内容)
统计时段说明
支持四种时间维度统计,基于自然时间划分:
| 时段类型 | 说明 | 重置时间 |
|---|---|---|
| total | 总统计(默认) | 永不重置 |
| year | 年度统计 | 每年1月1日 00:00 |
| month | 月度统计 | 每月1日 00:00 |
| day | 每日统计 | 每天 00:00 |
可用命令列表
| 命令格式 | 功能说明 | 示例 |
|---|---|---|
/复读排行 [时段类型] |
查看复读用户排行榜 | /复读排行 month |
/被复读排行 [时段类型] |
查看被复读用户排行榜 | /受害者排行 day |
/复读词排行 [时段类型] |
查看复读热词排行榜 | /复读词排行 year |
排行榜特性
- 默认显示TOP 10排名
- 相同次数按字母/数字顺序排列
- 数据实时更新,即时反映最新复读情况
安装方式
使用 nb-cli 安装:
nb plugin install nonebot-plugin-repeater-count
或使用 pip 安装:
pip install nonebot-plugin-repeater-count
使用示例
基础使用
/复读排行
👉 显示总排行榜(total)
/复读统计 month
👉 显示本月复读排行
/被复读排行 day
👉 显示今日被复读用户排行
/复读词排行
👉 显示历史所有复读热词
典型输出格式
[total] 时段的复读机排行榜:
- 用户A - 42次
- 用户B - 38次
- 用户C - 35次
...
注意事项
⚠️ 重要说明
需要 OneBot V11 适配器支持
仅统计群聊消息,私聊消息不会触发记录
数据存储在 data/repeater_data.json 文件,重启后数据保留
每日0点自动重置日统计,每月/年同理
消息对比为纯文本比对(忽略图片/表情等富媒体内容)
🔒 数据存储方式:
使用 JSON 格式本地存储
自动创建 data 目录存放数据文件
采用 UTF-8 编码确保兼容性
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_repeater_count-0.2.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_repeater_count-0.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f2b4b42930aacf6ae193ee27d96b582aa6b686f920b6bc436c147bc4d7be26
|
|
| MD5 |
fe49e9d42350d058530f9837a4f264f0
|
|
| BLAKE2b-256 |
7cf2a7115a435ad6b987d586168791a4762e87919cb11e365fa7e220f92ccc05
|
Provenance
The following attestation bundles were made for nonebot_plugin_repeater_count-0.2.1.tar.gz:
Publisher:
python-publish.yml on name-is-hard-to-make/nonebot-plugin-repeater-count
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_repeater_count-0.2.1.tar.gz -
Subject digest:
99f2b4b42930aacf6ae193ee27d96b582aa6b686f920b6bc436c147bc4d7be26 - Sigstore transparency entry: 169902935
- Sigstore integration time:
-
Permalink:
name-is-hard-to-make/nonebot-plugin-repeater-count@3b327a56ba3c695b12a402ebf47cd1f530aecf1e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/name-is-hard-to-make
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3b327a56ba3c695b12a402ebf47cd1f530aecf1e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file nonebot_plugin_repeater_count-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_repeater_count-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff93003c70a94a358dfcaafcf83328bfbc9f96351ac96a9219e457fece6010a
|
|
| MD5 |
3f6149aaaf67fbd63e4636847146949e
|
|
| BLAKE2b-256 |
b922ae4c2d2627f134730c349abaa7e793b430fe236e73eb628357718a4ee8d4
|
Provenance
The following attestation bundles were made for nonebot_plugin_repeater_count-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on name-is-hard-to-make/nonebot-plugin-repeater-count
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_repeater_count-0.2.1-py3-none-any.whl -
Subject digest:
0ff93003c70a94a358dfcaafcf83328bfbc9f96351ac96a9219e457fece6010a - Sigstore transparency entry: 169902937
- Sigstore integration time:
-
Permalink:
name-is-hard-to-make/nonebot-plugin-repeater-count@3b327a56ba3c695b12a402ebf47cd1f530aecf1e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/name-is-hard-to-make
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3b327a56ba3c695b12a402ebf47cd1f530aecf1e -
Trigger Event:
workflow_dispatch
-
Statement type: