配置
修改 NoneBot 配置文件 .env 或者 .env.*。
Driver
参考 driver 配置项,添加 HTTPClient 和 ASGIServer 支持。
如:
DRIVER=~httpx+~fastapi
配置机器人
配置连接配置,如:
vocechat_bots=[{"name": "xxx","user_id": "2", "server": "http://vocechat.url", "api_key": ""}]
vocechat_history_length=100 # 默认值
vocechat_bots 用于配置机器人
name 是任意的 bot 名称会决定 webhook 地址 如 http://{nonebot_host}:{nonebot_post}/vocechat/{name}
server 为 vocechat 服务器的地址。
api_key 为 vocechat 为bot生成的 api_key。
user_id 为 vocechat 生成的 bot 的 user_id。
vocechat_history_length 用于配置每个机器人存储的聊天记录长度,用于为 回复 提供原消息
相关项目
Metadata
Release files for nonebot-adapter-vocechat 0.1.8
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_adapter_vocechat-0.1.8.tar.gz | 16.5 kB | Without provenance | Details for nonebot_adapter_vocechat-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_adapter_vocechat-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for nonebot_adapter_vocechat-0.1.8-py3-none-any.whl |
Total release size: 36.8 kB
Release files / nonebot_adapter_vocechat-0.1.8.tar.gz
| Download URL | nonebot_adapter_vocechat-0.1.8.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f47aeb91b3fd01f1c01fab8fc5afa81d330692ea20c3bf37e6ae409ef67acbe0
|
|
BLAKE2b-256 checksum How to use checksums |
623c1943aecd9129aa55ff7f0c3f44faf6d6da04d9391bc984bd46fb776c00e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.6 CPython/3.12.10 Windows/11
|
Release files / nonebot_adapter_vocechat-0.1.8-py3-none-any.whl
| Download URL | nonebot_adapter_vocechat-0.1.8-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dad11bbf1f97b632c13f776d0444aca626823b5c8e6506cf60dc85e1f1ffe7e
|
|
BLAKE2b-256 checksum How to use checksums |
d81bea361d52111eb9c020d69411454f37ad5ce83973cd0243419cfb4388ac94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.6 CPython/3.12.10 Windows/11
|
Security for nonebot-adapter-vocechat 0.1.8
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.