Skip to content
Projects

About

QQrobot is developed in C++ and uses Qt for its interface and network communication. Qt is an open-source, cross-platform C++ GUI framework, and QQrobot can run on Linux, macOS, Windows, and other operating systems. Download the integrated development and build environment from http://qt-project.org/. QQrobot implements Tencent’s WebQQ protocol and can automatically send messages to QQ groups or individuals. It consists of two parts: the QQ client and robot plugins. The client parses the WebQQ protocol and handles QQ account login and message sending and receiving. Robot plugins analyze chat content and generate intelligent responses based on it. The QQ client window displays chat messages, friends, groups, and robots for monitoring. You can assign any number of robots to serve a QQ group or an individual. The client also lets you send messages to groups or individuals at any time. Robot plugins use Qt 5’s plugin technology and can be developed separately. After compiling a plugin, copy it to the plugins directory; the QQ client will automatically detect, install, and run it. A robot plugin only needs to implement the name and listenandsay methods in RobotInterface. name returns the robot’s name; listenandsay takes the received chat content and sender information as parameters and returns the robot’s response.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

QQrobot

QQrobot是用C++语言开发设计,程序界面、网络通迅等模块使用了Qt,Qt是开源的,跨平台C++程序图形界面框架库,QQrobot具备跨平台特性,可在linux、MAC OS以及Windows等操作系统中运行,集成开发编译环境请到 http://qt-project.org/ 下载。

QQrobot基于腾讯公司WebQQ协议实现,可以向QQ群或者是个人自动发送信息。分为两个部分,QQ主体和robot插件。QQ主体解析WebQQ协议,负责QQ号码登录,信息接收和发送功能。robot分析聊天内容,跟据聊天内容智能做出回应。

QQ主体窗口内,可监控显示聊天信息、好友列表、群列表和机器人列表。为QQ群或者个人指定随意多个机器人为之提供服务。也提供了信息发送功能,可随时向QQ群或者个人发送信息。

robot插件,使用Qt5的plugin技术,可单独开发,编译后拷贝到plugins目录中,QQ主体自动识别安装运行。robot插件只要完成接口RobotInterface内的name和listenandsay方法就ok,name返回robot的名子,listenandsay的参数是收到的聊天内容和发送者信息,返回值是robot回应信息。

Explore related projects

Loading…