Git Product home page Git Product logo

safeonebot's Introduction

icon SafeOneBot

转发OneBot SDK的请求,快速解决不规范开发、CQ码不支持的问题,对小白友好、高效、易用

Badge Badge

概览

SafeOneBot作为中间件,用于解决:

  • 不规范开发导致不能与OneBot实现正常对接;
  • 框架不支持CQ码导致小白开发困难;
  • 小白不会写WebSocket / Websocket对项目结构有所波坏。

使用

您可以选择下载源代码或下载Release

SafeOneBot使用JSON作为配置文件。config.json内容如下:

{
  "log_level": "INFO",
  "report_url": "http://127.0.0.1:1145",
  "onebot_url": "ws://127.0.0.1:1144",
  "listen_port": "5045",
  "onebot_port": "5044",
  "listen_protocol": "ForwardWebSocket"
}

其中:

  • log_level: 额,应该不用解释吧;
  • report_url: SafeOneBot向这里上报事件;
  • onebot_url: SafeOneBot从这里接受事件上报(仅正向Websocket)并向这里转发请求;
  • listen_port: SafeOneBot在这里接受OneBot实现的事件上报 和 返回内容(仅正向Websocket)
  • onebot_port: SafeOneBot会将OneBot SDK的请求向这里转发;
  • listen_protocol: 与OneBot实现对接使用的协议,目前仅支持HTTPForwardWebSocket

safeonebot's People

Contributors

harcicyang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

safeonebot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.