Nonebot Adapter for Kritor Protocol
Project description
adapter-kritor
NoneBot2 Kritor 协议适配器 / Kritor Protocol adapter for nonebot2
[!NOTE] Kritor 项目目前处于开发阶段, 所定义的 proto api 可能会有较大变动
若出现异常情况请确定本仓库使用的 kritor api 与所对接的协议端使用的 kritor api 是否相同
配置
修改 NoneBot 配置文件 .env
或者 .env.*
。
Driver
因本适配器基于 gRPC
,Nonebot 没有现有的相关驱动器,所以驱动请直接写 none
:
DRIVER=~none
KRITOR_CLIENTS
配置机器人帐号,如:
KRITOR_CLIENTS='
[
{
"host": "xxx",
"port": "xxx",
"account": "xxx",
"ticket": "xxx"
}
]
'
其中,
host
: 服务端的地址,默认为 localhostport
: 服务端的端口account
: bot 登录的账号ticket
: bot 登录用的凭证/密码
克隆
因为该仓库包含一个 submodule, 请使用以下命令克隆本仓库:
git clone --recursive https://github.com/nonebot/adapter-kritor.git
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
Built Distribution
Close
Hashes for nonebot_adapter_kritor-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd7059823109a1d2ccfda389fa22bca1c8b3dccd26b5872b55b0a4a58a02ec6f |
|
MD5 | e1c699d53991a2cff3db6d43f04ef4a3 |
|
BLAKE2b-256 | 24109a4a891d37578a78f1468f57658b91159a04bad4d29c22725bde1b3909b6 |
Close
Hashes for nonebot_adapter_kritor-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3097cc41166aae3a2844f0f25a03d9963317a5a8b9c97daff1ee914264097de7 |
|
MD5 | fa995c38d0af3c4e6d89dfecbb4def11 |
|
BLAKE2b-256 | 40f1ff3ce31b2549be04bd41f56ee877d74d3e33b9b16ef8b0fc2dfbe629e625 |