nonebot插件版的猜宝可梦,修改自pokemonle
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-pokemonle
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-pokemonle
pdm
pdm add nonebot-plugin-pokemonle
poetry
poetry add nonebot-plugin-pokemonle
conda
conda install nonebot-plugin-pokemonle
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_pokemonle"]
⚙️ 配置
在 nonebot2 项目的 env 文件中添加配置
| 配置项 | 必填 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| pokemonle_max_attempts | 否 | int | 10 | 最大尝试次数 |
| pokemonle_gens | 否 | list | [] | 世代选择,例如:["第一世代", "第三世代", "第五世代"],空代表都选 |
| pokemonle_cheat | 否 | bool | False | 是否开启恶作剧 |
🎉 使用
猜宝可梦: 开始游戏
直接输入怪物名称进行猜测
结束:结束游戏
📖 说明
游戏目标
通过输入宝可梦名称进行猜测,找出目标宝可梦。每次猜测后,你将获得输入宝可梦的相关信息,帮助你逐步接近答案。
提示颜色说明
绿色高亮 表示该信息与目标宝可梦完全相同。
黄色高亮 表示该信息与目标宝可梦接近但不完全相同。
黄色高亮的触发条件
种族值总和:与目标宝可梦的差值 ≤ 50
速度:与目标宝可梦的差值 ≤ 10
世代:与目标世代相邻(差值 ≤ 1)
进化方式:不完全相同但属于相似进化方式(例如使用物品、特定地点、等级、亲密度等)
形态标签:两只宝可梦都有地区形态,特殊形态所属地区不同
上下箭头的作用
在种族值总和、速度、世代等数值类信息中,箭头提示你猜测的方向是否正确:
↑:表示你输入的宝可梦的该数值低于目标宝可梦,建议下次猜测选择数值更高的宝可梦。
↓:表示你输入的宝可梦的该数值高于目标宝可梦,建议下次猜测选择数值更低的宝可梦。
Metadata
Release files for nonebot-plugin-pokemonle 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_pokemonle-0.0.9.tar.gz | 4.9 MB | Without provenance | Details for nonebot_plugin_pokemonle-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_pokemonle-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_pokemonle-0.0.9-py3-none-any.whl |
Total release size: 11.0 MB
Release files / nonebot_plugin_pokemonle-0.0.9.tar.gz
| Download URL | nonebot_plugin_pokemonle-0.0.9.tar.gz |
|---|---|
| Size | 4.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de0bc8a0ddc55f30df62db59236fec940bacf1e939f1f26dc079364564ac275
|
|
BLAKE2b-256 checksum How to use checksums |
0b58e9b11ac94531fbd3d2364877c41e748063b7b25ab97dca197f6c5dc709d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.29.2 CPython/3.12.15 Linux/6.17.0-1022-azure
|
Release files / nonebot_plugin_pokemonle-0.0.9-py3-none-any.whl
| Download URL | nonebot_plugin_pokemonle-0.0.9-py3-none-any.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ec35f0f980b5b986f9dcce597e8b84a3adb603f02f73c25760472964de00251
|
|
BLAKE2b-256 checksum How to use checksums |
dea79e809d57753d2e6ad584284a9f66b302abd1f6326260d0d206057275a387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.29.2 CPython/3.12.15 Linux/6.17.0-1022-azure
|
Security for nonebot-plugin-pokemonle 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.