MiraiForum

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

    ApexLookUp - Apex英雄查询插件

    插件发布
    kotlin jvm apex
    59
    502
    133526
    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.
    • SVIPNB
      SVIPNB last edited by

      好像有一个bug,每当有另一个群使用/apexadd map,那下次提醒,就会重复提醒Screenshot_2022-06-09-14-30-55-955_com.tencent.mobileqq.png

      Shennoter 1 Reply Last reply Reply Quote 0
      • R
        Rowxuan last edited by

        image.png

        1 Reply Last reply Reply Quote 0
        • Shennoter
          Shennoter 摸鱼 @SVIPNB last edited by Shennoter

          @SVIPNB 以后解决,现在暂时只能通过重启机器人来解决

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

            这么说来 我的群订阅了轮换图提醒 还从来没发过图 只有主动查询才发

            Shennoter 1 Reply Last reply Reply Quote 0
            • Shennoter
              Shennoter 摸鱼 @Moon1995 last edited by

              @Moon1995 data文件夹里的Reminder.json有没有你的群,有没有重启过mcl

              M 1 Reply Last reply Reply Quote 0
              • M
                Moon1995 @Shennoter last edited by

                @Shennoter deb56c85-21ba-4f45-bfd6-0233d5bae05f-image.png
                有群,重启过,不过首位有个0

                Shennoter 1 Reply Last reply Reply Quote 0
                • Shennoter
                  Shennoter 摸鱼 @Moon1995 last edited by Shennoter

                  @Moon1995 0是占位符,不能删,控制台有没有半小时出现一次完成地图监听的提示,config里应该把地图轮换提醒打开了吧

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Moon1995 @Shennoter last edited by

                    @Shennoter 坏了 知道了 原来默认false呃

                    Shennoter 1 Reply Last reply Reply Quote 0
                    • Shennoter
                      Shennoter 摸鱼 @Moon1995 last edited by

                      @Moon1995 厚礼蟹

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

                        很奇怪为什么绑定了可以正常查询ID什么的,但是单独查询ID又会网络请求错误,订阅玩家也是

                        ASUKAHUI 1 Reply Last reply Reply Quote 0
                        • ASUKAHUI
                          ASUKAHUI @ASUKAHUI last edited by

                          QQ图片20220610215508.png QQ图片20220610215442.png QQ图片20220610215426.png

                          Shennoter 1 Reply Last reply Reply Quote 0
                          • Shennoter
                            Shennoter 摸鱼 @ASUKAHUI last edited by Shennoter

                            @ASUKAHUI

                            //  /src/main/kotlin/utils/GetResponse.kt:26
                            val response = try {
                                    client.newCall(request).execute()
                                }
                                catch (e:Exception){
                                    return Pair(1, "网络请求发起错误")
                                }
                            

                            /apex、/apexid和玩家订阅调用的都是这个方法,按理说应该不会有差异,想要知道原因的话只有看StackTrace了,你可以在return前面加一句e.printStackTrace(),然后编译插件

                            Shennoter 1 Reply Last reply Reply Quote 1
                            • SVIPNB
                              SVIPNB last edited by

                              碰到了跟上次一样的bug,在我群里有个人先是/apexbd OriginID NiJiaLiSiRenLe,bot反馈玩家不存在,之后/apexbd NiJiaLiSiRenLe,显示绑定成功,但是/apex无反馈,控制台显示跟上次一样的文字警告
                              java.lang.NullPointerException: Cannot invoke "Global.getRank()" because the return value of "ApexResponsePlayer.getGlobal()" is null

                                              at ranklookup-1.5.1.mirai.jar//PlayerStatKt.playerPicturMode(PlayerStat.kt:44)
                                      
                                              at ranklookup-1.5.1.mirai.jar//PlayerStatKt.playerStat(PlayerStat.kt:34)
                                      
                                              at ranklookup-1.5.1.mirai.jar//utils.PlayerRegisterKt$playerRegister$1.invokeSuspend(PlayerRegister.kt:33)
                                      
                                              at ranklookup-1.5.1.mirai.jar//utils.PlayerRegisterKt$playerRegister$1.invoke(PlayerRegister.kt)
                                      
                                              at ranklookup-1.5.1.mirai.jar//utils.PlayerRegisterKt$playerRegister$1.invoke(PlayerRegister.kt)
                                      
                                              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
                                      
                                              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                                      
                                              at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                                      
                                              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
                                      
                                              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
                                      
                                              at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
                                      
                                              at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
                                      
                                              at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
                                      
                                              at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
                                      
                                              at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
                                      
                                              at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
                                      
                                              at net.mamoe.mirai.internal.event.InternalEventListenersKt.callAndRemoveIfRequired(InternalEventListeners.kt:115)
                                      
                                              at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$1.invokeSuspend(InternalEventListeners.kt)
                                      
                                              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                      
                                              at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:147)
                                      
                                              at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                                      
                                              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                      
                                              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)
                              
                              1 Reply Last reply Reply Quote 0
                              • SVIPNB
                                SVIPNB last edited by

                                之后我去data\pers.shennoter.RankLookUp\Users.json中,把他QQ号后面括号中的“?”删了,才可以正常查询的

                                Shennoter 1 Reply Last reply Reply Quote 0
                                • Shennoter
                                  Shennoter 摸鱼 @SVIPNB last edited by Shennoter

                                  @SVIPNB 个人错误操作问题,正常

                                  1 Reply Last reply Reply Quote 0
                                  • Q
                                    qiuqiubenqiu last edited by

                                    image.png
                                    大佬我想问下,不论我发什么他都是网络请求发起错误,到底是什么问题?

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      Anuo阿诺 @qiuqiubenqiu last edited by

                                      @qiuqiubenqiu 可以换个API试试 我之前也遇到过

                                      Q 1 Reply Last reply Reply Quote 0
                                      • Q
                                        qiuqiubenqiu @Anuo阿诺 last edited by

                                        @Anuo阿诺 我试了下,还是没用

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          JustinHuangber last edited by

                                          希望能加个支持中文的自定义指令

                                          1 Reply Last reply Reply Quote 0
                                          • Shennoter
                                            Shennoter 摸鱼 @Shennoter last edited by

                                            @Shennoter 在 ApexLookUp - Apex英雄查询插件 中说:

                                            //  /src/main/kotlin/utils/GetResponse.kt:26
                                            val response = try {
                                                    client.newCall(request).execute()
                                                }
                                                catch (e:Exception){
                                                    return Pair(1, "网络请求发起错误")
                                                }
                                            

                                            /apex、/apexid和玩家订阅调用的都是这个方法,按理说应该不会有差异,想要知道原因的话只有看StackTrace了,你可以在return前面加一句e.printStackTrace(),然后编译插件

                                            @qiuqiubenqiu 你可以照着这个操作,关于怎么编译前面已经说了,编译完后看报错是什么

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 15
                                            • 16
                                            • 17
                                            • 18
                                            • 19
                                            • 25
                                            • 26
                                            • 17 / 26
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact