Skip to main content

更加现代化的 NoneBot2 每日人品插件,支持查询今日、本周、本月和历史平均人品,提供详细的运势评价,并支持数据持久化存储。

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-jrrp3

✨ 更加现代化的 NoneBot2 每日人品插件 ✨

license pypi python NoneBot2

📖 介绍

nonebot_plugin_jrrp2 的现代化 Fork。

一个功能完善的每日人品查询插件,支持查询今日、本周、本月和历史平均人品,提供详细的运势评价,并支持数据持久化存储。

特性

  • 每日人品随机生成,基于用户ID和日期确保同一天结果一致
  • 支持查询本周、本月和历史平均人品数据
  • 详细的运势评级系统,提供个性化评价
  • 数据持久化存储,使用标准的插件数据目录
  • 完善的错误处理和异常捕获
  • 支持原jrrp2插件数据库迁移

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-jrrp3
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-jrrp3
pdm
pdm add nonebot-plugin-jrrp3
poetry
poetry add nonebot-plugin-jrrp3
conda
conda install nonebot-plugin-jrrp3

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-jrrp3"] 

⚙️ 配置

本插件使用 nonebot_plugin_localstore 自动管理数据存储路径,无需手动配置数据库路径。数据默认存储在 NoneBot 的标准插件数据目录下的 jrrp3 文件夹中。

[!NOTE] 插件设计上兼容 nonebot_plugin_jrrp2 的数据库格式,您可以将原数据库文件复制到插件的数据目录中实现数据迁移。

🎉 使用

指令表

指令 权限 需要@ 范围 说明
jrrp/今日人品/今日运势 群员 群聊/私聊 查询今日人品指数
本周人品/本周运势/周运势 群员 群聊/私聊 查询本周平均人品
本月人品/本月运势/月运势 群员 群聊/私聊 查询本月平均人品
总人品/平均人品/平均运势 群员 群聊/私聊 查询历史平均人品

功能说明

  1. 每日人品查询:每天获得一个1-100的随机数作为今日幸运指数
  2. 本周统计:显示本周使用次数和平均幸运指数
  3. 本月统计:显示本月使用次数和平均幸运指数
  4. 历史统计:显示全部历史使用次数和平均幸运指数

运势等级划分

分数 评级 描述
100 超吉 100!100诶!!你就是欧皇?
76-99 大吉 好耶!今天运气真不错呢
66-75 哦豁,今天运气还顺利哦
63-65 半吉 emm,今天运气一般般呢
59-62 小吉 还……还行吧,今天运气稍差一点点呢
54-58 末小吉 唔……今天运气有点差哦
10-53 末吉 呜哇,今天运气应该不太好
1-9 啊这……(没错……是百分制),今天还是吃点好的吧
0 大凶 啊这……(个位数可还行),今天还是吃点好的吧

📦 依赖

  • nonebot2 >= 2.1.0
  • nonebot-plugin-alconna
  • nonebot-plugin-localstore
  • Python >= 3.10

📝 许可证

本项目使用 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_jrrp3-3.0.tar.gz (6.2 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_jrrp3-3.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_jrrp3-3.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_jrrp3-3.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nonebot_plugin_jrrp3-3.0.tar.gz
Algorithm Hash digest
SHA256 a1bec31a43594bb13ab9baffdab2958b138a78258e4d7ae0b1767f45ea0f7fa0
MD5 ffba847f89da1c48aa7d946c13650959
BLAKE2b-256 aa17664744793662584d5d9a75c4f850eac7105b802464bc8b0a239c58bf65b4

See more details on using hashes here.

File details

Details for the file nonebot_plugin_jrrp3-3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_jrrp3-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae1aaf8d3146aa5771b3e927f7868e2a544e5b362ea83b244b78961ab9cee7d7
MD5 1872763ef39b9525208d3c4d10409331
BLAKE2b-256 1f415288adfdb583270caf9db79981efb22f27285b9f170d2f9a5e0f7acd2d96

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