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.1.tar.gz
(26.4 kB
view details)
Built Distribution
File details
Details for the file nonebot_adapter_qq-1.0.1.tar.gz
.
File metadata
- Download URL: nonebot_adapter_qq-1.0.1.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc98a37fc34f501496faa5aa37265e15a9762b78ccfb91ae41154d495f406bb |
|
MD5 | 517ef5c12ea543595c13179cf9daedee |
|
BLAKE2b-256 | ceb442eab32d49f066c5662570dd18b0c5ce837dcb41581d68f8a2aebc315912 |
File details
Details for the file nonebot_adapter_qq-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_adapter_qq-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09b4df2f8bf665e254a57da24662352d25ce096a8c165c8d55c51e645bac889e |
|
MD5 | 9e6481a889d75f432908c91b92f5dce0 |
|
BLAKE2b-256 | 83e0aec6ae3e692d74336614a2ddee765cc40eebf280a079e181e13fdc295d41 |