MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    ChatLearning——让bot学会你的群聊

    插件发布
    147
    818
    260107
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Koreyoshi
      Koreyoshi @saratoga-no-one 最后由 编辑

      @saratoga-no-one 61bd39d7-d3b9-4ef2-93ce-68fcd4df50dd-image.png 刚刚试了还是ok的
      可能您上传的时间刚好处于服务器的高峰期14d7c808-7d3e-40c4-b7d2-69c254be33e0-image.png 可以再多传几次试试

      S angelina-9730 2 条回复 最后回复 回复 引用 0
      • S
        saratoga-no-one @Koreyoshi 最后由 编辑

        @Koreyoshi 在一天的各个时间段都试过了,差不多快一百次,但没有一次成功,每次都是服务器未响应,是我这边出什么问题了吗(其他功能都好好的,就是没法上传音频)

        Koreyoshi 1 条回复 最后回复 回复 引用 0
        • Koreyoshi
          Koreyoshi @saratoga-no-one 最后由 编辑

          @saratoga-no-one 是不是您的服务器挂有代理之类的?要不就加个qq把音频发给我我后台传上去吧,1121917292

          1 条回复 最后回复 回复 引用 0
          • R
            resnowh 最后由 编辑

            能麻烦大佬帮忙看看是啥问题吗?这个exception是我打开mirai正常运行之后启动报错,不知道是不是api-http的问题😢

            欢迎使用ChatLearning应用 版本号: 2.6.0
            输入help来查看指令列表吧!
            抛出异常,已记录到日志(log.log文件)
            Traceback (most recent call last):
              File "ChatClass.py", line 103, in run
              File "Chatmain.py", line 924, in getcommand_chat
              File "simuse.py", line 76, in Fetch_Message
            TypeError: 'int' object is not subscriptable
            
            
            ChatLearning ->learning
            <-开始记录
            2022-03-30 15:33:02 词库合并完成
            抛出异常,已记录到日志(log.log文件)
            Traceback (most recent call last):
              File "ChatClass.py", line 103, in run
              File "ChatSubadmin.py", line 85, in main
              File "simuse.py", line 76, in Fetch_Message
            TypeError: 'int' object is not subscriptable
            
            

            下面是data.json 和api-http的settings.yml

            {
            //data.json:
            
             "Key": "020223",
             "host": "172.0.0.1:8075",
             "port": "8075",
             "qq": "132****225",
             "session": "XXX"
            }
            
            {
            adapters: 
              - http
            debug: false
            enableVerify: true
            verifyKey: 020223
            singleMode: false
            cacheSize: 4096
            adapterSettings: 
            http:
                host: localhost
                port: 8075
                cors: [*]
            }
            
            Koreyoshi 1 条回复 最后回复 回复 引用 0
            • Koreyoshi
              Koreyoshi @resnowh 最后由 Koreyoshi 编辑

              @resnowh 93f48746-f782-41a9-b786-1a4fd3417076-image.png 选中的地方应该是有个缩进的,在http:前面加个空格应该就ok了
              看这个缩进格式9d66f343-c865-4f3e-ad38-50cde0f7ccac-image.png

              R 1 条回复 最后回复 回复 引用 0
              • R
                resnowh @Koreyoshi 最后由 编辑

                @Koreyoshi 加了缩进,还是抛同样的异常。但是我后台开了一会,他隔一段时间会自动合并词库,不知道是不是已经在正常运行了?其他功能都看起来挺正常的,除了抛异常。。😂

                Koreyoshi 1 条回复 最后回复 回复 引用 0
                • Koreyoshi
                  Koreyoshi @resnowh 最后由 Koreyoshi 编辑

                  @resnowh 刚刚仔细看了下f4010912-1713-4949-885b-849d19eddb7c-image.png 是127.0.0.1:8075

                  R 2 条回复 最后回复 回复 引用 0
                  • R
                    resnowh @Koreyoshi 最后由 编辑

                    @Koreyoshi 现在那边没有报错,只有这边抛了异常

                    Koreyoshi 1 条回复 最后回复 回复 引用 0
                    • Koreyoshi
                      Koreyoshi @resnowh 最后由 编辑

                      @resnowh 是data.json文件的host不对

                      1 条回复 最后回复 回复 引用 1
                      • R
                        resnowh @Koreyoshi 最后由 编辑

                        @Koreyoshi 改成127之后Chatmain直接闪退了,且log是空的,另一边报错:

                        2022-03-30 16:37:09 E/MAH Access java.lang.NoSuchMethodError: 'void io.ktor.http.ParametersBuilder.<init>(int, io.ktor.http.UrlEncodingOption, int, kotlin.jvm.internal.DefaultConstructorMarker)'
                        java.lang.NoSuchMethodError: 'void io.ktor.http.ParametersBuilder.<init>(int, io.ktor.http.UrlEncodingOption, int, kotlin.jvm.internal.DefaultConstructorMarker)'
                        at io.ktor.routing.RoutingResolveContext.findBestRoute(RoutingResolve.kt:223)
                        at io.ktor.routing.RoutingResolveContext.resolve(RoutingResolve.kt:135)
                        at io.ktor.routing.Routing.interceptor(Routing.kt:37)
                        at io.ktor.routing.Routing$Feature$install$1.invokeSuspend(Routing.kt:107)
                        at io.ktor.routing.Routing$Feature$install$1.invoke(Routing.kt)
                        at io.ktor.routing.Routing$Feature$install$1.invoke(Routing.kt)
                        at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
                        at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
                        at net.mamoe.mirai.api.http.adapter.http.feature.auth.Authorization$install$1.invokeSuspend(Authorization.kt:41)
                        at net.mamoe.mirai.api.http.adapter.http.feature.auth.Authorization$install$1.invoke(Authorization.kt)
                        at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
                        at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
                        at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler.intercept(HttpRouterAccessHandler.kt:36)
                        at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler.access$intercept(HttpRouterAccessHandler.kt:25)
                        at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler$Feature$install$1.invokeSuspend(HttpRouterAccessHandler.kt:91)
                        at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler$Feature$install$1.invoke(HttpRouterAccessHandler.kt)
                        at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
                        at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
                        at io.ktor.util.pipeline.SuspendFunctionGun.execute(SuspendFunctionGun.kt:136)
                        at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:79)
                        at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invokeSuspend(DefaultEnginePipeline.kt:127)
                        at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invoke(DefaultEnginePipeline.kt)
                        at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invoke(DefaultEnginePipeline.kt)
                        at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
                        at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
                        at io.ktor.util.pipeline.SuspendFunctionGun.execute(SuspendFunctionGun.kt:136)
                        at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:79)
                        at io.ktor.server.cio.CIOApplicationEngine$handleRequest$2.invokeSuspend(CIOApplicationEngine.kt:196)
                        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

                        Koreyoshi 1 条回复 最后回复 回复 引用 0
                        • Koreyoshi
                          Koreyoshi @resnowh 最后由 编辑

                          @resnowh 插件目录是不是有多个mirai-api-http的jar包?或者是同其他插件有冲突?a51aa73b-1aa1-41a0-8d77-bac3925aedc4-image.png 我这边测试的mah版本是2.3.3

                          R 1 条回复 最后回复 回复 引用 0
                          • Koreyoshi
                            Koreyoshi 最后由 编辑

                            交流QQ群:734450830 方便大家提出问题,bug以及改进建议,分享语料库等

                            1 条回复 最后回复 回复 引用 0
                            • R
                              resnowh @Koreyoshi 最后由 编辑

                              @Koreyoshi 应该没有冲突吧,我这边是2.5.0

                              Koreyoshi 1 条回复 最后回复 回复 引用 0
                              • Koreyoshi
                                Koreyoshi @resnowh 最后由 编辑

                                @resnowh 打开cmd,然后拖到cmd里运行,我看看报错信息

                                R 1 条回复 最后回复 回复 引用 0
                                • R
                                  resnowh @Koreyoshi 最后由 编辑

                                  @Koreyoshi 空的,啥也没报e7ee1244-0c78-4fa1-b259-8c268b4f32c0-image.png

                                  Koreyoshi 1 条回复 最后回复 回复 引用 0
                                  • Koreyoshi
                                    Koreyoshi @resnowh 最后由 编辑

                                    @resnowh )把Chatmain.exe拖进去运行

                                    R 1 条回复 最后回复 回复 引用 0
                                    • R
                                      resnowh @Koreyoshi 最后由 编辑

                                      @Koreyoshi 72416e85-3562-4021-ac9b-d0971020c8d2-image.png

                                      Koreyoshi 1 条回复 最后回复 回复 引用 0
                                      • Koreyoshi
                                        Koreyoshi @resnowh 最后由 编辑

                                        @resnowh 是不是少了config.clc这个文件

                                        R 1 条回复 最后回复 回复 引用 0
                                        • R
                                          resnowh @Koreyoshi 最后由 编辑

                                          @Koreyoshi 有的呀350b97d2-231f-4e81-8a96-517d7edc3500-image.png

                                          Koreyoshi 1 条回复 最后回复 回复 引用 0
                                          • Koreyoshi
                                            Koreyoshi @resnowh 最后由 编辑

                                            @resnowh 噢我知道了)得在目录下打开cmd508381c3-4c99-4604-b437-d00d209b7702-image.png 这上面输入然后回车

                                            R 1 条回复 最后回复 回复 引用 0
                                            • 1
                                            • 2
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 40
                                            • 41
                                            • 14 / 41
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact