Skip to main content

插件描述

Project description

logo

✨ nonebot-plugin-guess-disease ✨

license pypi python ruff uv

[!IMPORTANT] 收藏项目 ~⭐️

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_TMP0.7 提问模型的温度
GD_ASK_MODEL GD_DEFAULT_MODEL 提问模型
GD_REPORT_TMP GD_DEFAULT_TMP0.3 检验报告模型的温度
GD_REPORT_MODEL GD_DEFAULT_MODEL 检验报告模型
GD_CHECK_TMP DEFAULT_TMP0.2 答案核对模型的温度
GD_CHECK_MODEL GD_DEFAULT_MODEL 答案核对模型
GD_ALLOWED_GROUPS [] 允许的群聊(留空则都允许)

🎉 使用

指令表

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

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_guess_disease-0.1.0.tar.gz (9.6 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_guess_disease-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_guess_disease-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_guess_disease-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b010f7cc53e6b199ad8215ce49acebfde2bd0f84a866f30c92482ee96efb1ff
MD5 9a2dfab2b4f36992212fa01b8af4779e
BLAKE2b-256 d8bc1be15180ea012e653ac36e524b7643d86968e72168888d910ee98c420059

See more details on using hashes here.

File details

Details for the file nonebot_plugin_guess_disease-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_guess_disease-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49905ff6f3b38ca7b9ac33e578ec8eecd0750c9862a07b428d15813ef361f9cd
MD5 17ae9683a7f097966cff2a6094a09b17
BLAKE2b-256 c5e35b9867a011362632a09ff0ea3d3ad243b98d07ba590bab1abeb221b7d135

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