MiraiForum

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

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

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

      回流怎么用

      1 条回复 最后回复 回复 引用 0
      • D
        damemod 最后由 编辑

        还有能否直接定位上一条添加,用便捷的指令删除,每次删除好痛苦

        D Moyuyanli 2 条回复 最后回复 回复 引用 0
        • V
          vynoca 最后由 编辑

          请问正则表达式匹配的【触发内容】里怎么表达 "@"某个用户的内容呢?

          V 1 条回复 最后回复 回复 引用 0
          • D
            damemod @damemod 最后由 编辑

            还有同一个问题在不同群,想要生效不同的答法,但是并不能。

            Moyuyanli 1 条回复 最后回复 回复 引用 0
            • V
              vynoca @vynoca 最后由 vynoca 编辑

              @vynoca

              感谢 @ 放空
              这个是在这个插件的讨论群中问到时,@ 放空 提供的解决办法:

              • 单独使用时 / 两侧或有一侧没有 其他部分的正则表达式的结构时,可以:
              \[mirai:at:123479\]
              \[mirai:at:123479\].*
              .*\[mirai:at:123479\]
              
              • 两侧均有 其他部分的正则表达式的结构时,可以:
              .*\[mirai:at:123479\].*
              .*at:123479.*
              

              大概是这样,建议大家自己再测试一下~~

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

                问一下权限ID

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

                  @damemod 这个,可以考虑添加一下,估计得往后面排

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

                    @damemod 这个目前的结构没办法做到哦

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

                      @xuefeng 那个id?

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

                        @GBLW22 小柚子厨

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

                          能用转义符添加词条吗

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

                            @Moyuyanli 输入dct:指令报错

                            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:750)
                                    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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
                                    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
                                    at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
                                    ... 10 more
                            
                            2023-01-07 17:52:03 E/Bot.2102678059: java.lang.IllegalStateException: Exception while broadcasting event 'GroupMessageEvent'
                            java.lang.IllegalStateException: Exception while broadcasting event 'GroupMessageEvent'
                                    at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:104)
                                    at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$1.invokeSuspend(EventDispatcher.kt)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:233)
                                    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:104)
                                    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                                    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                            Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: bound must be greater than origin
                                    at HuYanSession-2.3.1.mirai2.jar//cn.chahuyun.event.MessageEventListener.handleException(MessageEventListener.java:62)
                                    at net.mamoe.mirai.event.SimpleListenerHost$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:111)
                                    at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:75)
                                    at net.mamoe.mirai.internal.event.SafeListener$onEvent$1.invokeSuspend(SafeListener.kt)
                                    ... 9 more
                            Caused by: java.lang.IllegalArgumentException: bound must be greater than origin
                                    at java.base/jdk.internal.util.random.RandomSupport.checkRange(RandomSupport.java:232)
                                    at java.base/java.util.random.RandomGenerator.nextInt(RandomGenerator.java:679)
                                    at java.base/java.util.concurrent.ThreadLocalRandom.nextInt(ThreadLocalRandom.java:458)
                                    at HuYanSession-2.3.1.mirai2.jar[private]//cn.hutool.core.util.RandomUtil.randomInt(RandomUtil.java:184)
                                    at HuYanSession-2.3.1.mirai2.jar//cn.chahuyun.event.MessageEventListener.handleException(MessageEventListener.java:56)
                                    ... 12 more
                            
                            ChenyunCatcats 蔚 2 条回复 最后回复 回复 引用 0
                            • ChenyunCatcats
                              ChenyunCatcats @蔚蓝621 最后由 编辑

                              @蔚蓝621 那你找我干嘛()

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

                                @ChenyunCatcats 这个回复错了~

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

                                  @蔚蓝621 顺便说一下我的操作导致的bug,同样的一个关键词,我第二次%xx的时候,关了一个参数,把全局改成指定群,所以出错了,现在时删除也找不到,查询就报错,g

                                  1 条回复 最后回复 回复 引用 0
                                  • D
                                    damemod 最后由 编辑

                                    请问回流如何使用

                                    1 条回复 最后回复 回复 引用 0
                                    • D
                                      damemod 最后由 编辑

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

                                        多词条添加不了语音吗,这边添加完成后查询多词条在聊天记录外面能看到语音,点进去只有编号

                                        1 条回复 最后回复 回复 引用 0
                                        • N
                                          NoNameGMM 最后由 编辑

                                          请问一下...权限id是什么awa

                                          Moyuyanli 1 条回复 最后回复 回复 引用 0
                                          • J
                                            jgc9527 最后由 编辑

                                            能写一个动态消息的示例吗

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