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
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
Built Distribution
Close
Hashes for nonebot_adapter_kritor-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9d8eb2805a202a171dd0c25918c123c1afe2d89488f9b8f173b405520f1caa |
|
MD5 | 11655598abf5d68a86425f2698f6b399 |
|
BLAKE2b-256 | c723c89ab91964e5df5eb208e7af6a6b798b1e78a1110fda25c06f19ad89b7e9 |
Close
Hashes for nonebot_adapter_kritor-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a93461b357c97bc08d6082c6277d59d8308f8f093143d9230e45ab057429aac |
|
MD5 | 3b272d64394adeac3ba33b6131f825f7 |
|
BLAKE2b-256 | 83c055b580bb3c29e05a0664412819a1130fdd453ef5debebbf602c8dcd1ce44 |