一个 nonebot 的 Vocechat 适配器
Project description
nonebot-adapter-vocechat
✨ vocechat webhook 协议适配 ✨
[!NOTE] 目前处于早期阶段
遇到问题可以反馈
配置
修改 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 用于配置每个机器人存储的聊天记录长度,用于为 回复 提供原消息
相关项目
Project details
Release history Release notifications | RSS feed
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_adapter_vocechat-0.1.8.tar.gz.
File metadata
- Download URL: nonebot_adapter_vocechat-0.1.8.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.6 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f47aeb91b3fd01f1c01fab8fc5afa81d330692ea20c3bf37e6ae409ef67acbe0
|
|
| MD5 |
13d635e0a13bae63069c56264611f5b2
|
|
| BLAKE2b-256 |
623c1943aecd9129aa55ff7f0c3f44faf6d6da04d9391bc984bd46fb776c00e5
|
File details
Details for the file nonebot_adapter_vocechat-0.1.8-py3-none-any.whl.
File metadata
- Download URL: nonebot_adapter_vocechat-0.1.8-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.6 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dad11bbf1f97b632c13f776d0444aca626823b5c8e6506cf60dc85e1f1ffe7e
|
|
| MD5 |
6f8e3aa8958ea5668553b90e139ea7b3
|
|
| BLAKE2b-256 |
d81bea361d52111eb9c020d69411454f37ad5ce83973cd0243419cfb4388ac94
|