Socket
Book a DemoInstallSign in
Socket

koishi-plugin-adapter-matrix

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-adapter-matrix

Matrix Adapter for koishi

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

koishi-plugin-adapter-matrix

接入方法

  • 编写 registry.yaml, 参考 Registion
id: koishi # Application Service 的 ID
hs_token: # hs_token 与 as_token 没有特别的格式要求,请确保不会泄漏
as_token:
url: # 你的机器人的地址
sender_localpart: koishi # sender_localpart 不能与机器人的 id 相同
namespaces:
  users:
  - exclusive: true
    regex: '@koishi:matrix.example.com' # 你的机器人的 userId。如果需要使用同样的 as_token 和 hs_token 的情况下加载多个 adapter-matrix 插件, 请使用正则表达式
  • registry.yaml 添加进你的 homeserver, 如 synapse 则使用 app_service_config_files 配置项来指向 registry.yaml 并重启 homeserver
  • 启动机器人,在控制台中配置 @koishijs/plugin-verifier 与本插件
  • 在房间中邀请机器人(机器人的 ID 为 @${id}:${host}

Keywords

bot

FAQs

Package last updated on 18 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts