Skip to main content

NoneBot2 插件:群聊消息统计与排行榜

Project description


NoneBot2 插件:群聊消息统计与排行榜(好困困)

简介

nonebot-plugin-group-insight 是一个基于 NoneBot2 的插件,用于统计群聊消息并生成排行榜。通过该插件,您可以轻松了解群成员的活跃情况,并根据统计数据进行互动。


功能特性

  • 消息统计:自动记录群聊消息,支持按用户、时间段等维度统计。
  • 排行榜展示:生成群成员活跃度排行榜,支持多种排序方式。
  • 定时任务:通过 apscheduler 定时更新统计数据。
  • 数据存储:使用 SQLAlchemyaiosqlite 存储数据,确保高效与可靠。

安装方法

方法一:通过 pip 安装

pip install nonebot-plugin-group-insight

方法二:手动安装

  1. 克隆本仓库到本地:

    git clone https://github.com/your-repo/nonebot-plugin-group-insight.git
    
  2. 将插件目录放入您的 NoneBot2 项目 src/plugins 文件夹中。

  3. pyproject.tomlnonebot 配置文件中加载插件:

    plugins = ["nonebot_plugin_group_insight"]
    

使用说明

命令列表

  • 查看排行榜

    /排行榜
    
  • 查看个人统计

    /我的统计
    
  • 刷新统计数据(管理员):

    /刷新统计
    

配置项

nonebot 配置文件中添加以下配置项以自定义插件行为:

# 统计消息的时间范围(单位:天)
GROUP_INSIGHT_DAYS = 7

# 排行榜显示的最大人数
GROUP_INSIGHT_TOP_LIMIT = 10

贡献指南

欢迎为本项目贡献代码或提出建议!以下是参与贡献的步骤:

  1. Fork 本仓库。
  2. 创建您的分支 (git checkout -b feature/your-feature)。
  3. 提交更改 (git commit -am 'Add some feature')。
  4. 推送分支 (git push origin feature/your-feature)。
  5. 提交 Pull Request。

致谢

感谢 NoneBot2 提供的强大框架支持,以及所有为本项目提供帮助的开发者和用户。


许可证

本项目采用 MIT License 开源协议。


如果您有其他需求或需要进一步调整内容,请随时告诉我!

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

nonebot_plugin_group_insight-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_group_insight-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_group_insight-0.0.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_group_insight-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8a4113aacfbd9bce6be028335eddf8e44ad38b5258737e6695706fa18a34e700
MD5 166061203f946d262f1f4d922924a268
BLAKE2b-256 c637a0f50d3ae7f15ad4cd7ef098ee5a18e62f6be7fcfd6ed34c79ace400af9a

See more details on using hashes here.

File details

Details for the file nonebot_plugin_group_insight-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_group_insight-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78da481b94cf90489eb3266eed28009c7bf6e2721482fea142089ce7bcfad4cd
MD5 07a1660232cfda76c3c8901e201edfc5
BLAKE2b-256 256839a0c1e6bf381694e0fdbabcfc7df47830e3d1399353cc49620981cad7fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page