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": ""}
]

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

相关项目

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.3.tar.gz (12.9 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.3-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_adapter_vocechat-0.1.3.tar.gz
  • Upload date:
  • Size: 12.9 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.3.tar.gz
Algorithm Hash digest
SHA256 b595a58f7770affbde6968910e6e3b5f925f549d7d7b71096000d0d25416f8b5
MD5 d9973337c1397c8fd9cf1b128f38bf24
BLAKE2b-256 2a6e20b7607c1f2ca9bf16e868d5418187c91c49382bbd5b4cb146575aebe7bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_adapter_vocechat-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc25169627a3dc87bb3df2621f1094009cac4e278f3b6676b18d8221a977621b
MD5 4121eb441ab6fdb24e1aefd4fd558c9a
BLAKE2b-256 11d564d85d0bb3a8d84c1855e58bb773955d6aeab0dd8f49b2aea6b95f1579a0

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