QQ adapter for nonebot2
Project description
NoneBot-Adapter-QQ
✨ QQ 协议适配 ✨
配置
修改 NoneBot 配置文件 .env
或者 .env.*
。
Driver
参考 driver 配置项,添加 HTTPClient
和 WebSocketClient
支持。
如:
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
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
nonebot_adapter_qq-1.0.0.tar.gz
(25.9 kB
view details)
Built Distribution
File details
Details for the file nonebot_adapter_qq-1.0.0.tar.gz
.
File metadata
- Download URL: nonebot_adapter_qq-1.0.0.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 079056872386d4480648ea58b1a3299b86f6dbe52a0352d7c2535a0e79ec929d |
|
MD5 | ebcbec489177326a4e66c7656a6b99f7 |
|
BLAKE2b-256 | 4c643c443abd7fa1fc8ca6994dac89afc42857a2e58e338751961e492ab0bc4b |
File details
Details for the file nonebot_adapter_qq-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_adapter_qq-1.0.0-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72bab1dc9762b19f74454688612b693390f7dc32cf2cf19c8baf5a7dc8d5a20f |
|
MD5 | f09dbcb2d97793db8f8e1d6e8ba4a78a |
|
BLAKE2b-256 | 8fdba40d5a9b2940b71d8918923330f21844a04d951dde264fc659640d53fcba |