MiraiForum

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

    [壶言2]HuYanSession2——壶言会话2

    插件发布
    jvm 自定义回复 群管 自定义 定时任务
    57
    165
    42981
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Seayay
      Seayay 最后由 编辑

      多词条问题(可能不算问题,算特性?):
      添加多词条时若未结束添加,在非发起添加的群聊发送消息也会被识别为添加

      Moyuyanli 1 条回复 最后回复 回复 引用 0
      • Moyuyanli
        Moyuyanli 摸鱼 @Seayay 最后由 编辑

        @Seayay 明白了,现在的情况是只要是你发的下一条消息,都识别,看来得加个群判断。

        1 条回复 最后回复 回复 引用 1
        • 黑
          黑羽暮鸢 最后由 编辑

          请问能做到让bot去回复@自己的消息吗:D

          Moyuyanli 1 条回复 最后回复 回复 引用 0
          • Moyuyanli
            Moyuyanli 摸鱼 @黑羽暮鸢 最后由 编辑

            @黑羽暮鸢 为什么有这样的需求?这样不会导致机器人瞬间刷屏么?

            黑 1 条回复 最后回复 回复 引用 0
            • 黑
              黑羽暮鸢 @Moyuyanli 最后由 编辑

              @Moyuyanli 算是一个emmmm突发奇想吧,原来会这样,懂的不是很多,多谢解答了orz

              1 条回复 最后回复 回复 引用 0
              • 怀
                怀里抱妹 最后由 怀里抱妹 编辑

                发现有个不影响使用的小问题

                当使用中文完整指令【学习 测试 正常运行 精准 全局】时,会被忽略,无法学习成功;
                但是如果把指令改成【xx 测试 正常运行 精准 全局】就可以正常学习;

                经过测试只有使用中文【学习】,且【精准 全局】这两个位置 同时 有定义时,才会导致学习失败。

                学习词条失败与内容没有关系,同时后台没有任何报错和异常

                怀 1 条回复 最后回复 回复 引用 1
                • 怀
                  怀里抱妹 @怀里抱妹 最后由 编辑

                  @怀里抱妹 刚刚以为是插件冲突了,把另一个插件移除后,测试结果不变

                  Moyuyanli 1 条回复 最后回复 回复 引用 0
                  • Moyuyanli
                    Moyuyanli 摸鱼 @怀里抱妹 最后由 Moyuyanli 编辑

                    @怀里抱妹 了解了,感谢反馈
                    这个问题真tm神奇

                    1 条回复 最后回复 回复 引用 1
                    • 南栀沁寒
                      南栀沁寒 最后由 编辑

                      等一个正则

                      1 条回复 最后回复 回复 引用 0
                      • K
                        kanoucy 最后由 编辑

                        请问一下,我设置了以表情包触发回复。。但是想删掉却提示没有找到忘掉的东西... 请问没法删除图片指令嘛

                        Moyuyanli 1 条回复 最后回复 回复 引用 0
                        • Moyuyanli
                          Moyuyanli 摸鱼 @kanoucy 最后由 编辑

                          @kanoucy 你可以尝试一下-%xx

                          X 1 条回复 最后回复 回复 引用 0
                          • E
                            Exel9xt 最后由 编辑

                            此回复已被删除!
                            1 条回复 最后回复 回复 引用 0
                            • C
                              CDN18 最后由 编辑

                              想问一下现在有从壶言1迁移到壶言2的方法吗?(之前看开发者在壶言1里提到过)

                              Moyuyanli 1 条回复 最后回复 回复 引用 0
                              • 蔚
                                蔚蓝621 最后由 编辑

                                部分词语在学习配置好,给了精准+全局,结果群聊是无反应的,只有私聊才正常回复,但是可以正常删除,并且进行查询可以看到是没错的,可惜机器人挂公司了,没看到代码

                                蔚 Moyuyanli 2 条回复 最后回复 回复 引用 0
                                • 蔚
                                  蔚蓝621 @蔚蓝621 最后由 编辑

                                  此回复已被删除!
                                  1 条回复 最后回复 回复 引用 0
                                  • Moyuyanli
                                    Moyuyanli 摸鱼 @CDN18 最后由 编辑

                                    @CDN18 正在进行

                                    1 条回复 最后回复 回复 引用 1
                                    • Moyuyanli
                                      Moyuyanli 摸鱼 @蔚蓝621 最后由 编辑

                                      @蔚蓝621 请提供一下详细操作步骤,我去排查一下问题。

                                      蔚 2 条回复 最后回复 回复 引用 0
                                      • 蔚
                                        蔚蓝621 @Moyuyanli 最后由 蔚蓝621 编辑

                                        @Moyuyanli
                                        看了一下控制台是正常输出的,如果内容是又空格会不会有影响的,我把空行全删了还是不行。还是字段太长的问题,唯一变化就是权限?但权限是全局的..

                                        2022-10-17 09:24:16 V/Bot.189695274: [测试①群(q群)] 奏(q) -> 互动游戏
                                        2022-10-17 09:24:19 V/Bot.189695274: Group(q群) <- ——列表——\n1、摸摸头生成\n可以发送图片或者@某人或者QQ号确定 卡片图片\n如:#pet@群主,#pet123456\n2、狂亲生成\n可以发送图片或者@某人或者QQ号确定卡片图片\n如:#dear@群主,#dear123456\n3 、随机抽老婆\n随机抽取一位群友作老婆\n如:输出“抽老婆”“换老婆”\n4、随机表情包\n随机抽取一张表情包\n如:#群友表情
                                        
                                        2022-10-17 09:29:18 V/Bot.189695274: 奏(q)-> 互动游戏
                                        2022-10-17 09:29:18 V/Bot.189695274: Friend(q) <- ——列表——\n1、摸摸头生成\n可以发送图片或者@某人或者QQ号确定卡片图片\n如:#pet@群主,#pet123456\n2、狂亲生成\n可以发送图片或者@某人或者QQ号确定卡片图片\n如:#dear@群主,#dear123456\n3 、随机抽老婆\n随机抽取一位群友作老婆\n如:输出“抽老婆”“换老婆”\n4、随机表情包\n随机抽取一张表情包\n如:#群友表情
                                        
                                        1 条回复 最后回复 回复 引用 0
                                        • 蔚
                                          蔚蓝621 @Moyuyanli 最后由 编辑

                                          @Moyuyanli
                                          这个是出错的代码,不知道啥情况,好像没影响

                                          2022-10-17 09:19:37 E/HuYanSession: 出错啦~
                                          net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
                                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                  at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                                  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                          Caused by: java.lang.reflect.InvocationTargetException
                                                  at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
                                                  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                                  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
                                                  ... 10 more
                                          Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
                                                  at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
                                                  at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
                                                  at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:502)
                                                  at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
                                                  at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
                                                  at java.base/java.lang.Thread.run(Unknown Source)
                                          
                                          2022-10-17 09:19:37 E/HuYanSession: 出错啦~
                                          net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
                                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                  at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                                  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                          Caused by: java.lang.reflect.InvocationTargetException
                                                  at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
                                                  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                                  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
                                                  ... 10 more
                                          Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
                                                  at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
                                                  at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
                                                  at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:502)
                                                  at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
                                                  at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
                                                  at java.base/java.lang.Thread.run(Unknown Source)
                                          
                                          2022-10-17 09:19:37 E/HuYanSession: 出错啦~
                                          net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
                                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                  at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                                  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                          Caused by: java.lang.reflect.InvocationTargetException
                                                  at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
                                                  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                                  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
                                                  ... 10 more
                                          Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
                                                  at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
                                                  at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
                                                  at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:502)
                                                  at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
                                                  at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
                                                  at java.base/java.lang.Thread.run(Unknown Source)
                                          
                                          2022-10-17 09:19:37 E/HuYanSession: 出错啦~
                                          net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
                                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                  at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                                  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                          Caused by: java.lang.reflect.InvocationTargetException
                                                  at jdk.internal.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
                                                  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                                  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                                  at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
                                                  ... 10 more
                                          Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
                                                  at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
                                                  at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
                                                  at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:502)
                                                  at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
                                                  at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
                                                  at java.base/java.lang.Thread.run(Unknown Source)
                                          
                                          Moyuyanli 1 条回复 最后回复 回复 引用 0
                                          • Moyuyanli
                                            Moyuyanli 摸鱼 @蔚蓝621 最后由 编辑

                                            @蔚蓝621 能加一下群吗?我详细了解一下你这个问题,现在这样看不出来

                                            蔚 2 条回复 最后回复 回复 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 8
                                            • 9
                                            • 2 / 9
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact