怪物猎人:猜猜BOSS 的nonebot插件简单实现
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-mhguesser
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-mhguesser
pdm
pdm add nonebot-plugin-mhguesser
poetry
poetry add nonebot-plugin-mhguesser
conda
conda install nonebot-plugin-mhguesser
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_mhguesser"]
⚙️ 配置
在 nonebot2 项目的 env 文件中添加配置
| 配置项 | 必填 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| mhguesser_max_attempts | 否 | int | 10 | 最大尝试次数 |
🎉 使用
mhstart: 开始游戏
直接输入怪物名称进行猜测,若玩家猜测的怪物某项数据与答案怪物相同,对应的信息框将变为绿色。
结束:结束游戏
Metadata
Release files for nonebot-plugin-mhguesser 0.2.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_mhguesser-0.2.9.tar.gz | 18.5 kB | Without provenance | Details for nonebot_plugin_mhguesser-0.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_mhguesser-0.2.9-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_mhguesser-0.2.9-py3-none-any.whl |
Total release size: 39.0 kB
Release files / nonebot_plugin_mhguesser-0.2.9.tar.gz
| Download URL | nonebot_plugin_mhguesser-0.2.9.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
960331e58b1268d8fcc5300f850261a80edd1b61045d137fae54e7676a4b9a49
|
|
BLAKE2b-256 checksum How to use checksums |
35c4713a25829a5ea909081bb121d37988d5a64ac11d2ad566b902285748646d
|
| 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_mhguesser-0.2.9-py3-none-any.whl
| Download URL | nonebot_plugin_mhguesser-0.2.9-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
181a2f6f4af52c41814b1cc818be331a03cde473248329ffe12f88c9135c4363
|
|
BLAKE2b-256 checksum How to use checksums |
903b2580ed2ddec711e926e9531b59676623166e3a779391eed4547d6c72ef27
|
| 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-mhguesser 0.2.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.