Skip to main content

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

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-jrrp3

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

license pypi python NoneBot2

📖 介绍

nonebot_plugin_jrrp2 的现代化 Fork。

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

与 nonebot-plugin-jrrp2 的区别

  • 完全使用 Alconna 指令解析器重写逻辑,减少误触,增加反应速度
  • 使用 localstore 插件存储数据存储路径。
  • 完善的错误处理和异常捕获
  • 支持原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.9

📝 许可证

本项目使用 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.2.tar.gz (6.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_jrrp3-3.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_jrrp3-3.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.14.0-33-generic

File hashes

Hashes for nonebot_plugin_jrrp3-3.0.2.tar.gz
Algorithm Hash digest
SHA256 c039f611609cd016676a6ee9279d8a3ed1da0aede0f4714192096359f081ddf1
MD5 b0991d2031eb93e973416b14d33540db
BLAKE2b-256 0f62aeefd5b628f2486af25a8d5fd39c2ee31ef205f39e91b9f8c7766c2f5e09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_jrrp3-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.14.0-33-generic

File hashes

Hashes for nonebot_plugin_jrrp3-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8a513c8f49982176231f0cd76c23ab03ca6eaf781ccc3a4b0644158c9f00b5
MD5 1a5ba0fa3def2650a3b40087687834a7
BLAKE2b-256 1b3ea64795a7c67589bda4a265d63ab2fb0a2bde1e8139edf6cd223ebedc3885

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