Skip to main content

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

Project description

nonebot-plugin-arkguesser

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

当前版本:v1.0.2

安装

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.2.tar.gz (128.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.2-py3-none-any.whl (136.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arkguesser-1.0.2.tar.gz
Algorithm Hash digest
SHA256 29bf2949fd9921eb2662d9334ce68f134c71191088e68223595c7eb608e03b8a
MD5 dea4289fb07d761059fcc81021b4c7a6
BLAKE2b-256 b85ec1ab31db989d23dc0c6ee8342835876a0b7bc50b692602a3d8e655291f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arkguesser-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca1e5f0a034fa16bd593d57c4325f3464bb98a105917880062a16c4b27b87c5
MD5 e7f5bc1bacdaf17a9e735bc40d566658
BLAKE2b-256 5063e4d4547c7dc3b3185aa072a284c5ff11bd900268dac5c9117d9a7c258621

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