Skip to main content
NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-BAWiki-Revive

✨ 蔚蓝档案综合插件,堂堂复活(并没完全复活) ✨

python uv wakatime
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

📖 介绍

什么?BAWiki 复活了(但是好像并没有完全活)

当前版本主要提供 Arona 攻略数据源查询功能。

💿 安装

以下提到的方法 任选其一 即可

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

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

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_bawiki_revive"
]

⚙️ 配置

在 NoneBot2 项目的 .env 文件中添加下表中的配置

配置项 必填 默认值 说明
通用配置
BAWIKI_REV_REQUEST_TIMEOUT 否 10.0 请求超时时间(秒)
BAWIKI_REV_REQUEST_RETRY_ATTEMPTS 否 3 请求失败重试次数
BAWIKI_REV_REQUEST_RETRY_WAIT 否 1.0 每次请求重试前等待时间
Arona 配置
BAWIKI_REV_ARONA_API_BASE_URL 否 ... Arona API 基地址
BAWIKI_REV_ARONA_CDN_BASE_URL 否 ... Arona 图片 CDN 基地址
BAWIKI_REV_ARONA_SEARCH_SIZE 否 8 模糊搜索返回结果数
BAWIKI_REV_ARONA_SEARCH_METHOD 否 3 Arona 模糊搜索方法,详见 Arona API 文档
BAWIKI_REV_ARONA_FILTER_R18 否 True 默认是否过滤 R18 结果
BAWIKI_REV_ARONA_ALLOW_R18_PARAM 否 False 是否允许用户通过 --r18 查询 R18
BAWIKI_REV_ARONA_ALIAS_ONLY_SUPERUSER 否 False 是否仅允许超级用户管理别名
BAWIKI_REV_ARONA_SELECT_TIMEOUT 否 60.0 等待用户输入关键词或选择结果的超时时间(秒)
PicMenu 集成配置
BAWIKI_REV_PMN_ENABLE_BUILTIN_CODE_CSS 否 ... 是否启用内置代码着色 CSS
BAWIKI_REV_PMN_ADDITIONAL_CSS 否 ... 要附加的 CSS 路径列表
BAWIKI_REV_PMN_ADDITIONAL_JS 否 ... 要附加的 JS 路径列表
BAWIKI_REV_PMN_FONT_URL_PREFIX 否 ... 字体资源 URL 前缀

🎉 使用

PicMenu Next 集成

推荐搭配 PicMenu Next 插件使用

安装并加载 nonebot_plugin_picmenu_next 后,本插件会与其联动,注册 bawiki_revive 菜单模板。

该菜单模板是为 BAWiki Revive 单独准备的,包含首页、插件详情页和功能详情页。插件自身的详情页与功能详情页会默认使用它。

此模板 99% 由 AI 设计,剩余 1% 为人工微调。

如果想让 PicMenu 首页使用这套模板,可配置:

PMN_INDEX_TEMPLATE=bawiki_revive

如果想让其他插件的详情页和功能详情页也使用这套模板,可继续配置:

PMN_DETAIL_TEMPLATE=bawiki_revive
PMN_FUNC_DETAIL_TEMPLATE=bawiki_revive
首页示例(点击展开/收起)

index sample

详情页示例(点击展开/收起 可以查看本插件功能列表)

detail sample

功能详情页示例(点击展开/收起)

func detail sample

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:168603371
邮箱:lgc2333@126.com

💡 鸣谢

Arona Bot 攻略数据公开计划

  • Arona Bot 数据源

💰 赞助

赞助我

感谢大家的赞助!你们的赞助将是我继续创作的动力!

📝 更新日志

0.0.4

  • PicMenu 集成菜单模板字体现在改为按需下载,不打包到插件中

0.0.3

  • picmenu 菜单跟随回退 htmlrender 的最低支持版本为 v0.6,弃用 v0.7 特性支持

0.0.2

  • 修复 Arona 查询与图片下载时 HTTP 客户端未使用上下文管理器关闭的问题
  • 优化旧版 Arona 别名迁移逻辑:合并旧 JSON 到新别名文件,别名键统一规范化,并保留现有别名
  • 旧版 Arona 别名 JSON 无法解析或结构不合法时跳过迁移,且不再删除旧文件

0.0.1

  • 初始发布
  • 支持 Arona 攻略数据源查询、图片缓存与别名管理
  • 支持 PicMenu Next 菜单模板集成

Metadata

Release files for nonebot-plugin-bawiki-revive 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-bawiki-revive 0.0.4
File Size Uploaded
nonebot_plugin_bawiki_revive-0.0.4.tar.gz 8.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-bawiki-revive 0.0.4
File Interpreter ABI Platform
nonebot_plugin_bawiki_revive-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 MB

Release files / nonebot_plugin_bawiki_revive-0.0.4.tar.gz

Download URL nonebot_plugin_bawiki_revive-0.0.4.tar.gz
Size 8.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ae79673e37f1d2155d15661175f10abd8c02a19294669a53c268549712a350e3
BLAKE2b-256 checksum
How to use checksums
9bc1e4dac88947e6c03312558cfd107afc26e16ef7c93d94665be9c8a6e68295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nonebot_plugin_bawiki_revive-0.0.4-py3-none-any.whl

Download URL nonebot_plugin_bawiki_revive-0.0.4-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5a2d52742a813744b9ac76156001a6f5087bfe9f6ef4ccae083b1209bcf303a
BLAKE2b-256 checksum
How to use checksums
5c2c2e50d12081fcb6ca823d9c74532b07ed1f719e55540b537747e04afa0b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page