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 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.3

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

0.0.2

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

0.0.1

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

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_bawiki_revive-0.0.3.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_bawiki_revive-0.0.3-py3-none-any.whl (8.0 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_bawiki_revive-0.0.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_bawiki_revive-0.0.3.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for nonebot_plugin_bawiki_revive-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2a77b17add92bf4bd527883cfdc9d0540f6420184b8449f67b6ccc50daec0311
MD5 3712a5bbfb09c40cf0c2469628e8cfc8
BLAKE2b-256 da82b63e05efc7042bf92a82998a6341ab39d4f528c00f5a881367731d495288

See more details on using hashes here.

File details

Details for the file nonebot_plugin_bawiki_revive-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_bawiki_revive-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for nonebot_plugin_bawiki_revive-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4048e999b9962526065f05e7578c3a9fb759d2b401783ee4826e848a01e2c866
MD5 cc4a28223030cb807278a7fbaa92cf3f
BLAKE2b-256 2b5e07c5c484856d8b4ffd1fd747a4b011bdb1ea7bce87f0d15ddeaf564d18f6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 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