MiraiForum

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

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

    其他项目发布
    2
    15
    633
    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 dqfe123

      -------------2023-------------
      2022-03-12
      协议升级和设备信息完善后,几个45,235错误码的号码可以登录了
      升级协议:https://gitee.com/shr25/protocol-version-plugin

      通过命令创建(已包含升级后协议)

      mvn archetype:generate -B
      -DarchetypeGroupId=com.shr25.robot
      -DarchetypeArtifactId=qq-robot-plugin-maven
      -DarchetypeVersion=1.0.6
      -DgroupId=com.shr25.robot.plugin
      -DartifactId=fastPlugin

      ** 插件编写 **https://gitee.com/shr25/shr25-qq-robot/wikis/插件/插件编写?sort_id=5988851

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

      项目地址:https://gitee.com/shr25/shr25-qq-robot
      启动项目:https://gitee.com/shr25/shr-qq-robot-start
      已编写部分插件:发布在:https://gitee.com/shr25

      本人也是才开始玩机器人,希望可以和大家一起沟通交流
      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

            This post is deleted!
            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
              • D
                dqfe123 last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • D
                  dqfe123 last edited by

                  升级协议插件:https://gitee.com/shr25/protocol-version-plugin.
                  调整设备信息按qq号生成,换协议后,之前出现45 235错误码几个号码,可以正常登录了

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

                    编写插件比你想的简单
                    文档地址:https://gitee.com/shr25/shr25-qq-robot/wikis/插件/通过 maven archetype 创建
                    image.png

                    1 Reply Last reply Reply Quote 0
                    • Creeper_awa
                      Creeper_awa last edited by

                      @dqfe123 协议升级的插件咋下?

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

                        方法一:直接下载
                        maven中央仓库地址:https://repo1.maven.org/maven2/com/shr25/robot/plugin/protocol-version-plugin/1.0.3/

                        方法二:

                              <dependency>
                                    <groupId>com.shr25.robot.plugin</groupId>
                                    <artifactId>protocol-version-plugin</artifactId>
                                    <version>1.0.3</version>
                                    <scope>provided</scope>
                                </dependency>
                        

                        不过这个是shr25-qq-robot的 插件
                        源码:https://gitee.com/shr25/protocol-version-plugin

                        Creeper_awa 1 Reply Last reply Reply Quote 0
                        • Creeper_awa
                          Creeper_awa @dqfe123 last edited by

                          @dqfe123 请问安装了下载链接里的第一个后还是无法登录如何解决?谢谢!

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

                            @Creeper_awa 这个不是mirai-console的插件 mirai-console要看:https://mirai.mamoe.net/topic/223

                            Creeper_awa 1 Reply Last reply Reply Quote 0
                            • Creeper_awa
                              Creeper_awa @dqfe123 last edited by

                              @dqfe123 我已经解决了,感谢大佬,打扰了哈

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

                                添加摸鱼日历插件 :https://gitee.com/shr25/loafers-calendar-plugin.git

                                    <dependency>
                                        <groupId>com.shr25.robot.plugin</groupId>
                                        <artifactId>loafers-calendar-plugin</artifactId>
                                        <version>1.0.0</version>
                                        <scope>provided</scope>
                                    </dependency>
                                
                                1 Reply Last reply Reply Quote 0
                                • D
                                  dqfe123 last edited by

                                  定时早安插件:https://gitee.com/shr25/group-morning-plugin

                                  <dependency>
                                          <groupId>com.shr25.robot.plugin</groupId>
                                            <artifactId>group-morning-plugin</artifactId>
                                            <version>1.0.2</version>       
                                            <scope>provided</scope>
                                  </dependency>
                                  

                                  调整了随机图片、早安语的逻辑。
                                  增加了群消息数记录,当积累的消息数大于等于3时,才重复发送早安消息,防止连续发送

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