GithubHelp home page GithubHelp logo

muyuqingqiu / go-cqhttp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrs4s/go-cqhttp

0.0 1.0 0.0 120 KB

cqhttp的golang实现,轻量、原生跨平台.

License: GNU Affero General Public License v3.0

Go 100.00%

go-cqhttp's Introduction

go-cqhttp

使用 mirai 以及 MiraiGo 开发的cqhttp golang原生实现, 并在cqhttp原版的基础上做了部分修改和拓展. 文档暂时可查看 docs 目录, 目前还在撰写中.

测试版可前往 Release 下载

兼容性

接口

  • HTTP API
  • 反向HTTP POST
  • 正向Websocket
  • 反向Websocket

拓展支持

拓展API可前往 文档 查看

  • HTTP POST多点上报
  • 反向WS多点连接
  • 修改群名
  • 消息撤回事件
  • 解析/发送 回复消息
  • 解析/发送 合并转发
  • 使用代理请求网络图片

实现

已实现CQ码
  • [CQ:image]
  • [CQ:face]
  • [CQ:at]
  • [CQ:share]
  • [CQ:reply]
  • [CQ:forward]
  • [CQ:node]
已实现API
注意: 部分API实现与CQHTTP原版略有差异,请参考文档
API 功能
/get_login_info 获取登录号信息
/get_friend_list 获取好友列表
/get_group_list 获取群列表
/get_group_info 获取群信息
/get_group_member_list 获取群成员列表
/get_group_member_info 获取群成员信息
/send_msg 发送消息
/send_group_msg 发送群消息
/send_private_msg 发送私聊消息
/delete_msg 撤回信息
/set_friend_add_request 处理加好友请求
/set_group_add_request 处理加群请求/邀请
/set_group_card 设置群名片(群备注)
/set_group_special_title 设置群组专属头衔
/set_group_kick 群组T人
/set_group_ban 群组单人禁言
/set_group_whole_ban 群组全员禁言
/set_group_leave 退出群组
/set_group_name 设置群组名(拓展API)
/get_image 获取图片信息(拓展API)
/get_group_msg 获取群组消息(拓展API)
/can_send_image 检查是否可以发送图片
/can_send_record 检查是否可以发送语音
/get_status 获取插件运行状态
/get_version_info 获取 酷Q 及 CQHTTP插件的版本信息
已实现Event
注意: 部分Event数据与CQHTTP原版略有差异,请参考文档
Event
私聊信息
群消息
群消息撤回(拓展Event)
好友消息撤回(拓展Event)
群管理员变动
群成员减少
群成员增加
群禁言
群文件上传
加好友请求
加群请求/邀请

性能

在关闭数据库的情况下, 加载25个好友128个群运行24小时后内存使用为10MB左右. 开启数据库后内存使用将根据消息量增加10-20MB, 如果系统内存小于128M建议关闭数据库使用.

go-cqhttp's People

Contributors

mrs4s avatar mnixry avatar zhanglianxin avatar 0akarma avatar remiliacn avatar undefined-moe avatar

Watchers

James Cloos 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.