No project description provided
Project description
[!IMPORTANT] 收藏项目 ~⭐️
📖 介绍
本插件灵感来源于 猜病。
💿 安装
使用 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 |
群员 | 否 | 群聊 | 开始/加入游戏 |
| 具体问题 | 玩家 | 否 | 群聊 | 向病人提问 |
检查 + 具体检查项目 |
玩家 | 否 | 群聊 | 检查指定项目并输出报告 |
答案 |
玩家 | 否 | 群聊 | 在终端输出答案 |
结束 |
玩家 | 否 | 群聊 | 提供答案并结束游戏 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_guess_disease-0.1.3.tar.gz.
File metadata
- Download URL: nonebot_plugin_guess_disease-0.1.3.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53db9cb0e738253597925f41e80a8d18f8f7f762949eb476d6dbe52d00d25bd7
|
|
| MD5 |
ae32dd436fd4ed0dc86f1c8a00716c57
|
|
| BLAKE2b-256 |
144b3f371a45311a6f3c0c0881857ae36afc9ae941b55a5c2aa0b0d20964d42c
|
File details
Details for the file nonebot_plugin_guess_disease-0.1.3-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_guess_disease-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3343e6018230c67788b0002e3aae36f66b80ca6f3599249bd6d1ce12ffef2c56
|
|
| MD5 |
6f3fa9d77d06f5867d604807f28cfa94
|
|
| BLAKE2b-256 |
53b5d690e169ead97993c48eb19c702f1adf76ebd48f8508bd426cf7213ed283
|