Red Protocol Adapter for Nonebot2
Project description
NoneBot-Adapter-Red
✨ NoneBot2 Red Protocol适配器 / Red Protocol Adapter for NoneBot2 ✨
安装
Chronocat
请按照 Chronocat 的指引安装。
配置
修改 NoneBot 配置文件 .env
或者 .env.*
。
Driver
参考 driver 配置项,添加 ForwardDriver
支持。
如:
DRIVER=~httpx+~websockets
DRIVER=~aiohttp
RED_BOTS
配置机器人帐号,如:
RED_BOTS='
[
{
"port": "xxx",
"token": "xxx",
"host": "xxx"
}
]
'
其中 port
暂时一律为 16530
token
被默认存储在 %AppData%/BetterUniverse/QQNT/RED_PROTOCOL_TOKEN 或 ~/BetterUniverse/QQNT/RED_PROTOCOL_TOKEN 中,
首次启动 Chronocat 时会自动生成,并保持不变。
host
为运行 QQNT 的设备主机,默认为 localhost
。
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_red-0.1.0.tar.gz
(13.9 kB
view hashes)
Built Distribution
Close
Hashes for nonebot_adapter_red-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b1fcd671e300124664acc17bce156b6f37fb4a28e811bc6d79576e4c1a79e1 |
|
MD5 | 8e647b02ec49d9b6ad41e3889eb31383 |
|
BLAKE2b-256 | 9b41ce11bf7c994a249e7507eb463b9903cd8984949cb90f7a5516cdc14e97f7 |
Close
Hashes for nonebot_adapter_red-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98b931515ab2a839010d270828785ad525cb5c1dd36f05e4b25cf0ca01294d1 |
|
MD5 | fb29e06ddbe48a16cc9a3c44372f36f9 |
|
BLAKE2b-256 | e175f1b4c54d5a4b6869c2fbaf755b9b4c83c8d35beec33c8973f669ee62b8bb |