Skip to main content

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: 服务端的地址,默认为 localhost
  • port: 服务端的端口
  • 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

nonebot_adapter_kritor-0.2.0.tar.gz (40.6 kB view hashes)

Uploaded Source

Built Distribution

nonebot_adapter_kritor-0.2.0-py3-none-any.whl (53.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page