GithubHelp home page GithubHelp logo

javapcqq925's Introduction

JavaPcQQ925

This is a protocol Robot for PcQQ9.2.5,but it's not perfect.
这是一个PcQQ9.2.5的协议机器人,但还只是个半成品

已知的bug(懒得修):

  1. 对于非常用IP的账号无法登录(其实是我懒得写后续)

目录文件说明

  • PCQQ
    • bin\lib=>lib库文件
    • src =>代码目录
      • Mysql =>Mysql操作,留着不用
      • Pack =>协议组包工具
      • Plugin =>插件系统 下面细讲使用方法
      • UDP =>udpSocket组件,用于和服务器通讯
      • info =>账号信息,token,cookies,qqtea集合
      • lib => 。。。啊这多了一个可删
      • main =>主程序
        • test.java =>用于测试的
        • _Tlv.java =>tlv类型数据组包
        • qq.java =>主程序main函数
      • tools =>工具类,用于Tea加密和字节数组操作

其他的看名字结合翻译工具就能懂了不细讲!

插件系统

默认端口2333,协议方式为UDP,通讯方式JSON
你也可以到Plugin/PluginServer下修改类变量port的参数来修改端口

目前只有3个可用API,我还是太菜了,直接上JSON数据,自己看着组吧QWQ

以下加粗为变量,根据自己需求改变
初始化:{"cmd":"Init","Name":插件名称,"Writer":作者的大名}
发好友消息:{"cmd":"SendFriendMsg","FriendQQ":好友QQ,"Msg",消息内容}
发群消息:{"cmd":"GroupUin","FriendQQ":群号,"Msg",消息内容}
- 消息变量说明:群里艾特:[TR:at=QQ号] 图片变量:[TR:pic=GUID](Guid可通过发消息给机器人日志中获取!)

发行版使用方法

对于不会java的小白,你可以打开cmd,输入java -jar 下载jar包的路径 来使用

由于java代码安全性极差,已经放弃本项目

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.