Skip to main content
logo

✨ nonebot-plugin-guess-disease ✨

license pypi python ruff uv
starify

📖 介绍

本插件灵感来源于 猜病。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-guess-disease --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-guess-disease --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-guess-disease --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-guess-disease

安装仓库 master 分支

uv add git+https://github.com/Xwei1645/nonebot-plugin-guess-disease@master
pdm
pdm add nonebot-plugin-guess-disease

安装仓库 master 分支

pdm add git+https://github.com/Xwei1645/nonebot-plugin-guess-disease@master
poetry
poetry add nonebot-plugin-guess-disease

安装仓库 master 分支

poetry add git+https://github.com/Xwei1645/nonebot-plugin-guess-disease@master

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_guess_disease"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的配置

配置项 必填 默认值 说明
GD_API_KEY 是 无 你的 API KEY
GD_API_BASE_URL 是 无 对应的 API BASE 地址
GD_DEFAULT_MODEL 是 无 默认使用的模型
GD_DEFAULT_TMP 否 0.7 默认温度
GD_ASK_TMP 否 DEFAULT_TMP 或 0.7 提问模型的温度
GD_ASK_MODEL 否 GD_DEFAULT_MODEL 提问模型
GD_REPORT_TMP 否 GD_DEFAULT_TMP 或 0.3 检验报告模型的温度
GD_REPORT_MODEL 否 GD_DEFAULT_MODEL 检验报告模型
GD_CHECK_TMP 否 DEFAULT_TMP 或 0.2 答案核对模型的温度
GD_CHECK_MODEL 否 GD_DEFAULT_MODEL 答案核对模型
GD_ALLOWED_GROUPS 否 [] 允许的群聊(留空则都允许)

🎉 使用

指令表

指令 权限 需要@ 范围 说明
猜猜病/猜病/ccb/cb 群员 否 群聊 开始/加入游戏
具体问题 玩家 否 群聊 向病人提问
检查 + 具体检查项目 玩家 否 群聊 检查指定项目并输出报告
结束 玩家 否 群聊 提供答案并结束游戏

Metadata

Release files for nonebot-plugin-guess-disease 0.1.2

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-guess-disease 0.1.2
File Size Uploaded Provenance Actions
nonebot_plugin_guess_disease-0.1.2.tar.gz 12.8 kB Without provenance Details for nonebot_plugin_guess_disease-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-guess-disease 0.1.2
File Interpreter ABI Platform Actions
nonebot_plugin_guess_disease-0.1.2-py3-none-any.whl Python 3 none any Details for nonebot_plugin_guess_disease-0.1.2-py3-none-any.whl

Total release size: 26.4 kB

Release files / nonebot_plugin_guess_disease-0.1.2.tar.gz

Download URL nonebot_plugin_guess_disease-0.1.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5f9c61cd1931998620f1602f55aa6ef9059842cbc2808dd32ce51a10fb597c7
BLAKE2b-256 checksum
How to use checksums
3cc4ff49e08f0051bb3679464db1cb8556f6a3ab77cf8d0350a422f23b19d2d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / nonebot_plugin_guess_disease-0.1.2-py3-none-any.whl

Download URL nonebot_plugin_guess_disease-0.1.2-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcd9957f119fb1359fe52c604a0b5855258592bad087bafd5b022286a99f2f9a
BLAKE2b-256 checksum
How to use checksums
d850002334d7c5efbedd6ce5468502b2b11f24a1e16f524df318d9e4553c57b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for nonebot-plugin-guess-disease 0.1.2

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