MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    spring boot+mirai-core快速开发机器人

    其他项目发布
    1
    5
    284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dqfe123 last edited by

      适合于java程序猿的一款小框架,shr25-qq-robot
      有单独的启动器,lib分离,自动监测新增插件。
      采用mybatis-plugin作为数据源,目前支持sqlite,mysql
      相信会java的同学大多都了解或者使用spring boot,本项目使用了spring boot+mirai-core。可以很快上手
      可以单独调整核心插件或自定义开发插件

      项目地址:https://gitee.com/shr25/shr25-qq-robot

      项目结构:
      shr25-qq-robot
      ├── shr25-qq-robot-core -- 核心公共部分
             └── com.shr25.robot.StartUpApplication -- 调试启动类
      ├── shr25-qq-robot-plugin -- 自定义插件项目
             └── com.shr25.robot.DemoApplication -- 调试启动类
      └── shr25-qq-robot-start -- 机器人启动项目
             ├── cache -- qq信息、文件缓存目录
             ├── config -- 打包配置目录
             ├── plugin -- 自定义插件目录
             ├── script -- 启动脚本目录
             └── com.shr25.robot.StartApplication -- 启动类
      
      打包后目录:
      shr25-qq-robot
      ├── cache -- 缓存目录
      ├── lib -- 库
      ├── logs -- 日志
      ├── plugin -- 自定义插件
      ├── application-prod.yml-- 配置
      ├── qqrobot.bat-- 启动脚本
      ├── qqrobot.sh-- 启动脚本
      └── shr25-qq-robot.jar -- 启动程序
      

      demo插件: https://gitee.com/shr25/shr25-qq-robot-demo-plugin
      摸头插件:https://gitee.com/shr25/pat-head-plugin
      欢迎大家 star,fork

      本人也是才开始玩机器人,希望可以和大家一起沟通交流
      qq群:786310882

      1 Reply Last reply Reply Quote 0
      • D
        dqfe123 last edited by

        目前开发的几个自定义插件已发布到中央仓库 可以通过maven 或其他 管理工具 直接在项目中引用
        中央仓库地址:https://repo1.maven.org/maven2/com/shr25/robot/plugin/
        主项目和插件源码转入gitee组织下:https://gitee.com/shr25
        有感兴趣的朋友可以一起玩一下

        1 Reply Last reply Reply Quote 0
        • D
          dqfe123 last edited by

          开始更新shr25-qq-robotwiki 地址https://gitee.com/shr25/shr25-qq-robot/wikis
          image.png

          可以根据文档,开发自定义插件

          1 Reply Last reply Reply Quote 0
          • D
            dqfe123 last edited by

            maven archetype 1.0.0发布了
            只需要一条命令就可以快速度创建一个 自定义插件项目, 直接启动就是一个简单的机器人
            mvn archetype:generate -B
            -DarchetypeGroupId=com.shr25.robot
            -DarchetypeArtifactId=qq-robot-plugin-maven
            -DarchetypeVersion=1.0.0
            -DgroupId=com.shr25.robot.plugin
            -DartifactId=fastPlugin

            java程序员的你 只要知道maven 就可以快速创建

            1 Reply Last reply Reply Quote 0
            • D
              dqfe123 last edited by

              为了防止项目中出现多个启动类导致同学产生迷惑,把start项目从主项目中独立出来
              项目地址:https://gitee.com/shr25/shr-qq-robot-start
              加入了web容器,实现通过接口 登录QQ

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact