Skip to main content

QQ adapter for nonebot2

Project description

nonebot-adapter-qq

NoneBot-Adapter-QQ

✨ QQ 协议适配 ✨

配置

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

Driver

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

如:

DRIVER=~httpx+~websockets
DRIVER=~aiohttp

QQ_IS_SANDBOX

是否为沙盒模式,默认为 False

QQ_IS_SANDBOX=true

QQ_BOTS

配置机器人帐号,intent 需要根据机器人类型以及需要的事件进行配置。如:

私域频道机器人示例

QQ_BOTS='
[
  {
    "id": "xxx",
    "token": "xxx",
    "secret": "xxx",
    "intent": {
      "guild_messages": true,
      "at_messages": false
    }
  }
]
'

公域群机器人示例

QQ_BOTS='
[
  {
    "id": "xxx",
    "token": "xxx",
    "secret": "xxx",
    "intent": {
      "c2c_group_at_messages": true
    }
  }
]
'

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_qq-1.1.0.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

nonebot_adapter_qq-1.1.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_adapter_qq-1.1.0.tar.gz.

File metadata

  • Download URL: nonebot_adapter_qq-1.1.0.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for nonebot_adapter_qq-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ecfb7bcdaedcde03897fa5dbef9e35f2c5376cbd64d754c5997cffbf94fb27da
MD5 f49bc606fa5bb8f131f2665813247d5e
BLAKE2b-256 9e014b417fad13cb90526b25954fdc76ee8d6b0af5c111a41b3b8d23ddd1ed50

See more details on using hashes here.

File details

Details for the file nonebot_adapter_qq-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_qq-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfaf3f319a161c7a69c294fa04dcce961b2de1e48bc72c504110728273f75d75
MD5 896e45977190c36aa322cf2702193306
BLAKE2b-256 74d65447c97cb69b3bba89fee8bbc3c9e425d96e6fbea5deb767439ddf3977f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page