Skip to content

Satori-Python 0.2.0

Choose a tag to compare

@RF-Tar-Railt RF-Tar-Railt released this 18 Oct 19:42
· 307 commits to main since this release

新增

  • 服务端模型 Server 与适配器模型 Adapter。适配器需要实现基类方法,由 Server 统一调度
  • WebHook 连接 (WIP)

改进

  • main.py -> client.py,以区分客户端与服务端

修复

  • 修复客户端下 API 请求的错误处理逻辑
  • 修复WS 鉴权时的问题

服务端示例:

from satori import Server, Adapter

server = Server(port=5140)
server.apply(Adapter())
server.run()

Full Changelog: v0.1.1...v0.2.0