MiraiForum

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

    烂大街的搜图, RSS转发等功能插件, 带Windows界面

    插件发布
    csharp http mirai-csharp
    25
    124
    8031
    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.
    • Alex1911
      Alex1911 last edited by Alex1911

      一个基于mirai 使用 Mirai-Sharp SDK开发的多功能插件

      项目地址: https://github.com/Alex1911-Jiang/GreenOnions
      下载地址: https://github.com/Alex1911-Jiang/GreenOnions/releases

      没想到用的人还挺多的, 建了个QQ群: QQ群
      有bug来群里反馈处理速度会快一些

      本来想说萌新福音的, 但是能找到这里的各位都不是萌新了, 也就看一乐
      但我是萌新, 以前mirai 1.X的时候整天一更新就一堆插件用不了了, 干脆一咬牙把自己用的插件都自己模仿着写了一遍

      效果:

      搜图效果.png
      色图效果.jpg
      RSS效果.png
      伪造消息效果.jpg

      界面:

      主界面.png
      主设置.png
      搜图设置.png
      色图设置1.png
      色图设置2.png
      RSS设置.png

      部署

      请前往 Github 主页查看详情。

      贡献

      欢迎任何使用者大佬们贡献这个项目,你可以通过反馈 BUG,提出 Pull Request 申请,在这个主题下回复,或修改文档错别字来贡献这个项目。

      1 Reply Last reply Reply Quote 4
      • RainChan
        RainChan 摸鱼 last edited by

        少有的带GUI配置界面的应用,看起来不错

        1 Reply Last reply Reply Quote 1
        • A
          Asuna521 last edited by

          linux能用吗?

          Alex1911 1 Reply Last reply Reply Quote 0
          • Alex1911
            Alex1911 @Asuna521 last edited by

            @Asuna521 有跨平台的启动器, 没GUI那种, 能用是能用但是我没做通过命令修改参数的功能, 要手动改配置文件

            1 Reply Last reply Reply Quote 0
            • M
              MJR147 last edited by

              已经配置好了dotnet5.0,启动时报错,求解决E8JYN1}9N26OQM}F2LJ@6GJ.png

              Alex1911 Executor-Cheng 3 Replies Last reply Reply Quote 0
              • Alex1911
                Alex1911 @MJR147 last edited by

                @MJR147 看起来像是某个包不支持, 系统是什么? 我装一下试试

                M 1 Reply Last reply Reply Quote 0
                • M
                  MJR147 @Alex1911 last edited by

                  @Alex1911 阿里云的linux(应该是Centos8)

                  1 Reply Last reply Reply Quote 0
                  • Sakura azusa
                    Sakura azusa last edited by

                    系统Windows7 Sp1,补丁B2533623是强打的,安装了dotnet5.0和jdk17.0.2,连接时出现错误the server returned status code '404'when status code'101'was expected

                    Executor-Cheng Alex1911 2 Replies Last reply Reply Quote 0
                    • Executor-Cheng
                      Executor-Cheng ⭐2021⭐ @MJR147 last edited by Executor-Cheng

                      @MJR147 大概是我Mirai-CSharp框架的问题, 按理说会带上Mirai-CSharp.NativeAssets.Linux这个包以自动拷贝依赖到输出目录的, 我自己去试试看怎么回事

                      我觉得是不是作者没有使用linux-x64来发布一版自己的插件?看了看release里边都是在win下边编译产出的
                      此处@Alex1911

                      Alex1911 1 Reply Last reply Reply Quote 0
                      • Executor-Cheng
                        Executor-Cheng ⭐2021⭐ @Sakura azusa last edited by

                        @Sakura-azusa 方便提供一下你所用的 mirai-api-http 版本号嘛

                        Sakura azusa 1 Reply Last reply Reply Quote 0
                        • Sakura azusa
                          Sakura azusa @Executor-Cheng last edited by

                          @Executor-Cheng 在 烂大街的搜图, RSS转发等功能插件, 带Windows界面 中说:

                          @Sakura-azusa 方便提供一下你所用的 mirai-api-http 版本号嘛

                          mirai-api-http版本为2.4.0,我尝试更新到项目的2.5.0版本但他好像还是会跳会下载2.4.0,不知道有没有影响

                          Executor-Cheng 1 Reply Last reply Reply Quote 0
                          • Executor-Cheng
                            Executor-Cheng ⭐2021⭐ @Sakura azusa last edited by

                            @Sakura-azusa 奇怪了, 我自己也是2.4.0, 用的时候没有被给出过404的http状态码
                            那就可能不是我框架问题了

                            imi-123 1 Reply Last reply Reply Quote 0
                            • imi-123
                              imi-123 @Executor-Cheng last edited by

                              @Executor-Cheng 我也是出现这个404的提示框,但我没装补丁包,可能是因为这个。不知道补丁包怎么安装,大佬可以给一下下载地址和安装方法吗。

                              imi-123 2 Replies Last reply Reply Quote 0
                              • imi-123
                                imi-123 @imi-123 last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • imi-123
                                  imi-123 @imi-123 last edited by

                                  @imi-123 在 烂大街的搜图, RSS转发等功能插件, 带Windows界面 中说:

                                  @Executor-Cheng 我也是出现这个404的提示框,但我没装补丁包,可能是因为这个。不知道补丁包怎么安装,大佬可以给一下下载地址和安装方法吗。

                                  这样的

                                  Executor-Cheng 1 Reply Last reply Reply Quote 0
                                  • Alex1911
                                    Alex1911 @Executor-Cheng last edited by

                                    @Executor-Cheng 在 烂大街的搜图, RSS转发等功能插件, 带Windows界面 中说:

                                    @MJR147 大概是我Mirai-CSharp框架的问题, 按理说会带上Mirai-CSharp.NativeAssets.Linux这个包以自动拷贝依赖到输出目录的, 我自己去试试看怎么回事

                                    我觉得是不是作者没有使用linux-x64来发布一版自己的插件?看了看release里边都是在win下边编译产出的
                                    此处@Alex1911

                                    额, 对, 我一直以为只要编译了就行, 就没用发布, 然后发现是走到
                                    GetRequiredService<IMiraiHttpSession>()
                                    这一步出错的, 刚想去大佬你那边提Issuse你就出现了, 但是我刚刚用linux-x64发布了一次还是这个问题, 哪怕选了独立部署模式也还是一样

                                    Executor-Cheng 1 Reply Last reply Reply Quote 0
                                    • Executor-Cheng
                                      Executor-Cheng ⭐2021⭐ @Alex1911 last edited by

                                      @Alex1911 https://github.com/Alex1911-Jiang/GreenOnions/pull/3
                                      已提交PR解决跨平台生成/发布缺少必要运行时的问题

                                      Executor-Cheng created this issue in Alex1911-Jiang/GreenOnions

                                      closed 解决跨平台进行生成/发布操作时缺少必要的运行时文件问题 #3

                                      1 Reply Last reply Reply Quote 0
                                      • Executor-Cheng
                                        Executor-Cheng ⭐2021⭐ @imi-123 last edited by Executor-Cheng

                                        @Sakura-azusa @imi-123 我自己试了试没有拿到404的错误,mirai-api-http的版本是2.4.0
                                        能辛苦你clone一下git@github.com:Alex1911-Jiang/GreenOnions.git
                                        然后修改GreenOnions.BotMain\Program.cs内的第101行为ConnectedEvent?.Invoke(false, ex.ToString());
                                        设置启动项目为GreenOnions.BotManagerWindow以复现一下此问题?这样能拿到具体异常在哪一行

                                        imi-123 1 Reply Last reply Reply Quote 0
                                        • Alex1911
                                          Alex1911 @Sakura azusa last edited by

                                          @Sakura-azusa @imi-123 两位可以拿一下 https://github.com/Alex1911-Jiang/GreenOnions/releases/tag/Test 里的 win-x86x64-windows.zip
                                          启动出现404的时候找一下exe目录里的一个error.log文件, 然后把里面的内容发上来看看

                                          imi-123 1 Reply Last reply Reply Quote 0
                                          • imi-123
                                            imi-123 @Alex1911 last edited by

                                            @Alex1911 发生异常:
                                            错误信息:The server returned status code '404' when status code '101' was expected.
                                            调用堆栈: at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
                                            at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.StartReceiveMessageLoopAsync(MiraiHttpSessionOptions options, InternalSessionInfo session, CancellationToken connectToken, CancellationToken token)
                                            at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
                                            at GreenOnions.BotMain.Program.Main(Int64 qqId, String ip, Int32 port, String authKey, Action2 ConnectedEvent) at GreenOnions.BotMain.Program.Main(Int64 qqId, String ip, Int32 port, String authKey, Action2 ConnectedEvent)
                                            源:System.Net.WebSockets.Client
                                            异常发生时间为:2022/3/4 11:51:56
                                            完整异常信息:System.Net.WebSockets.WebSocketException (0x80004005): The server returned status code '404' when status code '101' was expected.
                                            at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
                                            at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.StartReceiveMessageLoopAsync(MiraiHttpSessionOptions options, InternalSessionInfo session, CancellationToken connectToken, CancellationToken token)
                                            at Mirai.CSharp.HttpApi.Session.MiraiHttpSession.ConnectAsync(Int64 qqNumber, Boolean listenCommand, CancellationToken token)
                                            at GreenOnions.BotMain.Program.Main(Int64 qqId, String ip, Int32 port, String authKey, Action2 ConnectedEvent) at GreenOnions.BotMain.Program.Main(Int64 qqId, String ip, Int32 port, String authKey, Action2 ConnectedEvent)
                                            异常发生时间:2022/3/4 11:51:56

                                            imi-123 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 1 / 7
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact