Skip to main content

一个 nonebot 的 Vocechat 适配器

Project description

nonebot

nonebot-adapter-vocechat

✨ vocechat webhook 协议适配 ✨

[!NOTE] 目前处于早期阶段

遇到问题可以反馈

配置

修改 NoneBot 配置文件 .env 或者 .env.*

Driver

参考 driver 配置项,添加 HTTPClientASGIServer 支持。

如:

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/webhook?bot={name}

server 为 vocechat 服务器的地址。

api_key 为 vocechat 为bot生成的 api_key

user_id 为 vocechat 生成的 bot 的 user_id

vocechat_history_length 用于配置每个机器人存储的聊天记录长度,用于为 回复 提供原消息

相关项目

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_adapter_vocechat-0.1.6.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_adapter_vocechat-0.1.6-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_adapter_vocechat-0.1.6.tar.gz.

File metadata

  • Download URL: nonebot_adapter_vocechat-0.1.6.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.2 CPython/3.12.10 Windows/11

File hashes

Hashes for nonebot_adapter_vocechat-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7d9ef17a4eedec9fc6661cc79b8e0a20702004fa2102bfc5308ec63d3c0d6693
MD5 6296329895a411b44ca8b44147756044
BLAKE2b-256 2b122a211af14b0a47f3c09cdf6517e315762efebc96d22c71d9a135695cced0

See more details on using hashes here.

File details

Details for the file nonebot_adapter_vocechat-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_vocechat-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 84433c634327679c0662a5584225760c856b989355ba1a17436df3683ab317eb
MD5 9b29bcf6402e140858e30488898f7e85
BLAKE2b-256 24c6c1205f1bb7644ab7c0baa14d4a6c218d28859819e9bef73bca195dcadf9f

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