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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a41d5a203e88b26bf8f6a50e1b1ce6f02d00aaa8164c4aee808b6a0c19d25f |
|
MD5 | cf8341150413dca9e1beac25c7243e13 |
|
BLAKE2b-256 | d27fabfd7ecd5f58e6d36626b9f64538318c31d11d0060257caad161ee6d2738 |
Close
Hashes for nonebot_adapter_kritor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1607257bdb480bf75c16231644c5d2ca90c592aa14b6a4652588a8aef06a7f44 |
|
MD5 | 399746b0a86ba334563447302ce6341d |
|
BLAKE2b-256 | 3ac5c74329ef16087e7d9c584479329d1e70b50bb7e8f4e25805c16b195838fe |