Dice Narrator
已实现功能列表
- 基础检定: [Command: 检定]
如果你有好的想法,欢迎提出 issue 或者 PR。
安装
nb plugin install nonebot-plugin-dice-narrator
配置
插件配置文件路径: ./configs/nonebot_plugin_dice_narrator/config.dev.yaml (启动一次服务后生成),请根据以下配置文件修改配置。
OPENAI_API_KEYS: # OpenAI API Key (可填多个*必须)
- sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
- sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
- sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
OPENAI_BASE_URL: https://api.openai.com/v1 # OpenAI API Base URL
CHAT_MODEL: gpt-3.5-turbo # 使用的 Chat Model
FORBIDDEN_USERS: # 禁止交互的用户列表
- 123456
DIFFICULTY_DICE_MAX: 20 # 检定难度最大值 (即骰子面数)
OPENAI_PROXY: null # OpenAI 使用的代理FORBIDDEN_WORDS: []
FORBIDDEN_WORDS: # 屏蔽词列表
- xxxxxx
FILTER_WORDS: # 过滤词列表
- xxxxxx
FILTER_PLACEHOLDER: "[数据删除]" # 过滤词替换占位符
使用
向 Bot 发送 检定 任务描述 (需要指令前缀),Bot 会根据其描述指定一个检定难度,并给出结果。
例如:
注意: 你可以检定任意内容的文本,但不是所有文本都能得到良好的反馈,建议内容文本为一段可执行的任务,同时可以附上一些简要的任务背景概况;避免使用疑问句、无意义短句等意义不明的语句。
开发指南
如果你想为 Dice Narrator 贡献代码,可以参考以下步骤:
0. 提交 issue
如果你希望你的代码被合并到主分支发布,请先提交 issue 说明你的想法,避免重复劳动或功能冲突。
1. 克隆代码
建议先 fork 项目到自己的仓库,然后再克隆自己仓库的代码。
git clone https://github.com/KroMiose/nonebot_plugin_dice_narrator.git
2. 安装开发环境依赖
poetry install
3. 运行项目
nb run --reload
🤝 贡献列表
感谢以下开发者对本项目做出的贡献
Metadata
Release files for nonebot-plugin-dice-narrator 0.1.13
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_dice_narrator-0.1.13.tar.gz | 22.5 kB | Without provenance | Details for nonebot_plugin_dice_narrator-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_dice_narrator-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_dice_narrator-0.1.13-py3-none-any.whl |
Total release size: 46.0 kB
Release files / nonebot_plugin_dice_narrator-0.1.13.tar.gz
| Download URL | nonebot_plugin_dice_narrator-0.1.13.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a01a052722d3ee6a84f4c97fdade199a5828157a036a50f5a772a6f2d7018bb5
|
|
BLAKE2b-256 checksum How to use checksums |
6951dea228af0b96ed532d250155f933a979e5db7377213c06b35e639fc6b32b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.14 Linux/6.5.0-1018-azure
|
Release files / nonebot_plugin_dice_narrator-0.1.13-py3-none-any.whl
| Download URL | nonebot_plugin_dice_narrator-0.1.13-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
625a7bbc688f7733ae1b2f5bbc4a1b74da75605a22880068aa468b8fae1094e2
|
|
BLAKE2b-256 checksum How to use checksums |
b9b3fb792b8b22c13383f9aa71ecf514c4ad4fc7cb95d76190db4400c2382415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.14 Linux/6.5.0-1018-azure
|
Security for nonebot-plugin-dice-narrator 0.1.13
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.