Skip to main content

nonebot-plugin-mhguesser

✨ <怪物猎人猜BOSS> ✨

license PyPI - Version python

怪物猎人:猜猜BOSS 的nonebot插件简单实现

💿 安装

⚠️ 版本兼容性说明

本插件依赖 nonebot-plugin-htmlrender 进行图片渲染。

  • 如果你的 nonebot-plugin-htmlrender >= 0.8,直接安装最新版 nonebot-plugin-mhguesser 即可。
  • 如果你的 nonebot-plugin-htmlrender < 0.8,请安装 nonebot-plugin-mhguesser==0.2.X。(当前最新:v2 version)。

安装命令

使用 nb-cli 安装

在 nonebot2 项目的根目录下打开命令行,输入以下指令即可安装:

htmlrender >= 0.8:

nb plugin install nonebot-plugin-mhguesser

htmlrender < 0.8:

nb plugin install "nonebot-plugin-mhguesser==0.2.X"
使用包管理器安装

在 nonebot2 项目的插件目录下,打开命令行,根据你使用的包管理器,输入相应的安装命令。

htmlrender >= 0.8:

pip
pip install nonebot-plugin-mhguesser
pdm
pdm add nonebot-plugin-mhguesser
poetry
poetry add nonebot-plugin-mhguesser
conda
conda install nonebot-plugin-mhguesser

htmlrender < 0.8:

pip
pip install "nonebot-plugin-mhguesser==0.2.X"
pdm
pdm add "nonebot-plugin-mhguesser==0.2.X"
poetry
poetry add "nonebot-plugin-mhguesser==0.2.X"
conda
conda install "nonebot-plugin-mhguesser==0.2.X"

注册插件

打开 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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-mhguesser 0.3.0
File Size Uploaded Provenance Actions
nonebot_plugin_mhguesser-0.3.0.tar.gz 19.3 kB Without provenance Details for nonebot_plugin_mhguesser-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-mhguesser 0.3.0
File Interpreter ABI Platform Actions
nonebot_plugin_mhguesser-0.3.0-py3-none-any.whl Python 3 none any Details for nonebot_plugin_mhguesser-0.3.0-py3-none-any.whl

Total release size: 40.2 kB

Release files / nonebot_plugin_mhguesser-0.3.0.tar.gz

Download URL nonebot_plugin_mhguesser-0.3.0.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aa9896d41d22959c93be884095366cc7c63c5abddd3e087038bb8b6da260fb28
BLAKE2b-256 checksum
How to use checksums
816d50e9048f550f5dd82ef9312431a25d8366979c36baa66a7aa10695f73da9
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.3.0-py3-none-any.whl

Download URL nonebot_plugin_mhguesser-0.3.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecf939db976d09b0735ff1c649d8be105a801fec1cb1b04eee34130b427c8063
BLAKE2b-256 checksum
How to use checksums
7e7ae817f133ea18a8789264f14d79e55032ddff78281c580ba1dc7c134ac585
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.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page