Skip to main content

BAWiki Revive

Project description

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 项目的插件目录下,打开命令行,根据你使用的包管理器,输入相应的安装命令
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 数据源

💰 赞助

赞助我

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

📝 更新日志

芝士刚刚发布的插件,还没有更新日志的说 qwq~

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_bawiki_revive-0.0.1.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.1-py3-none-any.whl (8.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_bawiki_revive-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.1.tar.gz
Algorithm Hash digest
SHA256 93a53cf08c2cee82e50b47273ca2c8c9afbd61d32bac15b3890beaef727f2df3
MD5 75f626aca0e502dd32185f553ae978b7
BLAKE2b-256 531bb85270a861e5c16283ac6215d6e36e2177f9e62991a766a2d429384b55e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_bawiki_revive-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83da67d6aa72923f79a66635ac028000d956a0148f819a4566bc4fdc6d7b5278
MD5 f2372e67ba1fb39e039ae6390c5320b9
BLAKE2b-256 92984fa0ddfda417185105e519fbf80ce31061ad85a56453a38e37502a62b9ec

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