Skip to main content

明日方舟猜干员游戏 - 支持多种游戏模式和题库设置

Project description

nonebot-plugin-arkguesser

基于 NoneBot2 的《明日方舟》猜干员小游戏插件,支持题库星级范围、大头模式、连战模式与资源更新等。

当前版本:v1.0.3

安装

pip install nonebot-plugin-arkguesser

或在项目 pyproject.toml[tool.nonebot] 中启用:

plugins = ["nonebot_plugin_arkguesser"]

依赖

pyproject.toml / requirements.txt(NoneBot2、nonebot-plugin-alconnanonebot-plugin-uninfononebot-plugin-htmlrendernonebot-plugin-localstorejinja2 等)。

可选依赖(头像对齐)resource_tools 在更新流程中会生成 char_e2_head_align.csv,需 OpenCV 与 NumPy。若未安装,update_simple.py 会在对应步骤报错并提示安装。安装方式:

pip install "nonebot-plugin-arkguesser[head-align]"

配置(.env

配置项 默认值 说明
arkguesser_max_attempts 10 最大尝试次数
arkguesser_default_rarity_range "6" 默认星级范围
arkguesser_default_mode "大头" 默认游戏模式
arkguesser_recent_exclude_count 40 最近已出干员不重复抽取数量
arkguesser_render_scale 1.0 结果图渲染缩放(相对 540×540)

使用摘要

  • arkstart:开始游戏(别名:明日方舟开始
  • 游戏中直接输入干员名猜测;结束 结束本局
  • arkstart 题库 … / arkstart 模式 … / arkstart 连战 …:题库、模式、连战相关设置
  • 管理员:arkstart 更新(更新数据库)、arkstart 别称 …(维护别称表)

完整说明以仓库文档为准。

从源码构建

pip install build
python -m build

产物在 dist/(wheel 与 sdist)。

许可证

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_arkguesser-1.0.3.tar.gz (134.1 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_arkguesser-1.0.3-py3-none-any.whl (142.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_arkguesser-1.0.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_arkguesser-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b0222bbe732d5bdbc10b418e7ae24e26d6459decd41070860969800169c468f8
MD5 7873cb215a287a816bce02ef7c916e04
BLAKE2b-256 2f38c7a902477d752163958316e5ef15df3dda82041e1b3409781b6cf38eafe6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_arkguesser-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_arkguesser-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 386f0c4a3bbfc1659579d8e7106fe345c7356c93a6e20cc072f3d65046409b84
MD5 c65209fde65c3ce74c2b4be96829f57b
BLAKE2b-256 899436c3627fc693023550c343b091cac5f6377b13de449169b0b03013e35da5

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