Git Product home page Git Product logo

cpp-pbbot's Introduction

ProtobufBot

QQ群

可用的编程语言和对应框架(SDK)

语言 框架地址 Demo 核心作者 备注
Java
Kotlin
protobufbot/pbbot-spring-boot-starter protobufbot/spring-mirai-server lz1998 有插件机制
Node.js ProtobufBot/js-pbbot example lz1998
Python PHIKN1GHT/pypbbot example PHIKN1GHT 文档 有插件机制
Golang ProtobufBot/go-pbbot test lz1998
C++ ProtobufBot/cpp-pbbot event_handler lz1998 依赖Drogon,需要CMake
Rust - rs-demo lz1998 NKDark 基本能用,正在开发
易语言 ProtobufBot/pbbot_e_sdk 包含在框架内 GhostSn 只有常用功能

推荐直接看Demo,根据demo直接修改,快速上手

其他语言

编写websocket server,使用二进制数据通信。消息处理代码可以使用onebot_idl自动生成。参考Protobuf官网,使用protoc自动生成代码,官方支持C++ C# Dart Go Java Python,通过安装protoc插件可以支持更多语言。

QQ机器人的软件(相当于酷Q)

软件 协议库 环境 备注
GMC【推荐】 miraigo 不需要 维护中
GMC-Android【推荐】 miraigo 不需要 可在手机上运行
SMC mirai JVM 可能有问题,长期不维护

注意

以上两者需要同时运行,代码写在第一个里面,第二个只需要运行

整体流程:

  • 先运行GMC/SMC(二选一)并登陆, 然后选择任意编程语言,编写代码后运行,需要与GMC/SMC同时运行。
  • GMC/SMC收到消息后会通过websocket上报给消息处理端,如果需要发送消息,消息处理端会通过websocket通知GMC/SMC发送消息。

推荐的使用方法

先运行GMC/SMC + Demo,不修改任何代码,运行成功后再进行修改。

cpp-pbbot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wwaassd qidouhai

cpp-pbbot's Issues

I couldn't build in protobuf 3.21.4

I couldn't build in protobuf 3.21.4 and threw out the "this file by old version proto built".
I use version 3.21.4 to out the '.proto' file after.
In the "event_handler. cpp" file, "resp ->message_Id()" gets the "onebot:: MessageReceipt" type, while the "deleteMsg()" function requires the int type.
I have corrected the above errors in my source code

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.