Giter VIP home page Giter VIP logo

oicq-http2's Introduction

oicq-http2

将 oicq2 (或其衍生的二次开发版本)部署为兼容 OneBot 11 协议的独立服务, 通过 http 及 ws 与外界通信。

本项目移植自 这儿, 仅用于将 oicq2 扩展部署为服务,同时增加了部分功能以便扩展使用。

🗃️ 环境需求

  • nodejs >= 12.16
  • yarn

🚚 部署运行

> 准备项目

使用 git 获取本仓库或者在本页面下载 ZIP 归档,使用 yarn install 初始化项目依赖。 yarn

> 启动服务

运行指令 yarn start [QQ] 启动服务: run

✏️ 追加接口

本项目同时追加了一些扩展接口丰富功能,下面是增加的方法列表:

名称 功能 参数 备注
http_proxy 代理请求 API 接口 url 用于让 bot 代理请求一些 QQ 的 API 接口,绕过前端跨域的问题。
get_login_info 获取登陆账号的基本信息和 uin
get_class_info 获取好友分组列表
get_file_url 获取文件下载链接 id, message_id, fid
get_video_url 获取视频下载链接 id, message_id, fid, md5
set_message_read 将消息标记为已读 message_id
upload_file 上传并发送文件 type, id, file 这是个 POST 接口,请使用表单提交。其中 type 为 group 或 friend。

oicq-http2's People

Contributors

tim-paik avatar stapxs avatar youxam avatar

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.