MiraiForum

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

    MarryPlugin 娶群友插件

    插件发布
    5
    14
    1719
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • X
      xiatianYa 最后由 编辑

      项目地址:https://github.com/xiatianYa/MarryPlugin/tree/MarrPlugin
      启动后需要手动修改config/com.hn.cat的CatConfig.yml配置文件

      //这里放你需要使用的群号
      权限群列表: [12345678,12345678,12345678]
      

      命令列表:

      • 列表娶群友 随机从群里抽取一位今天发过消息的幸运儿做你老婆
      • 订婚@XXX 向某人求婚 概率60%成功
      • 当小三@XXX 抢走别人的老婆 or 老公 概率35%成功
      • 离婚 与老婆离婚 概率60%成功
      • 群老婆列表 查看今天结婚的群友
        7ddcf939-0b2e-4b18-a6ca-9a844f50766b-{4C759CA9-DAAC-44ab-8059-ADE8874CABCE}.png
        93a32eca-f7ac-437c-82fb-bf56e4d8d69a-{597C7BE4-401C-4e0b-9106-AA5A21E521E0}.png
        817d3c9a-ba08-4444-8925-817002188173-QQ截图20240218015549.png
      //萌新写的代码 有什么问题会及时修改
      //有什么问题可以评论留言 谢谢
      
      1 条回复 最后回复 回复 引用 0
      • I
        IM2eR0 最后由 编辑

        github仓库 404了喔
        是不是没转换成公开仓库呀?

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

          大佬,仓库404进不去

          X 1 条回复 最后回复 回复 引用 0
          • X
            xiatianYa @YuukiTriple 最后由 编辑

            @YuukiTriple 抱歉抱歉 忘记改成公开了

            1 条回复 最后回复 回复 引用 0
            • X
              xiatianYa @IM2eR0 最后由 编辑

              @IM2eR0 修改了 可以访问了 抱歉抱歉

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

                大佬会考虑加入自定义触发词和自定义回复内容等功能吗

                X 1 条回复 最后回复 回复 引用 0
                • X
                  xiatianYa @YuukiTriple 最后由 编辑

                  @YuukiTriple 可以

                  1 条回复 最后回复 回复 引用 1
                  • F
                    firefairy 最后由 firefairy 编辑

                    使用发现了一些bug
                    A有对象为B,离婚→离婚成功→当小三@C→失败→订婚@C→“显示A有对象为B”
                    A与B互为对象→C当小三@A→成功→“提示C当小三成功,你的群老公是C”→查询群老婆列表→“B的群老婆为C”
                    “”中为可能有问题的地方

                    X 3 条回复 最后回复 回复 引用 0
                    • X
                      xiatianYa @firefairy 最后由 编辑

                      @firefairy 我看看 待会更新

                      1 条回复 最后回复 回复 引用 0
                      • X
                        xiatianYa @firefairy 最后由 编辑

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

                          @firefairy 好了 应该是没有问题了 还有问题的话 评论就好了

                          1 条回复 最后回复 回复 引用 0
                          • 这
                            这个小暗不太冷 最后由 编辑

                            2024-03-06 13:28:34 V/Bot.3515498262: [无名(565347972)] Yami(1365379848) -> 订婚[mirai:at:3515498262]
                            2024-03-06 13:28:34 E/Bot.3515498262: 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.IllegalStateException: 未找到异常处理器. 请继承 SimpleListenerHost 中的 handleException 方法, 或在 构造 SimpleListenerHost 时提供 CoroutineExceptionHandler

                            Cannot find exception handler from coroutineContext.
                            Please extend SimpleListenerHost.handleException or provide a CoroutineExceptionHandler to the constructor of SimpleListenerHost
                            at net.mamoe.mirai.event.SimpleListenerHost.handleException(JvmMethodListeners.kt:192)
                            at Cat-0.1.0.mirai2.jar//com.hn.cat.listener.CatEventHandler.handleException(CatEventHandler.java:21)
                            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: net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
                            at net.mamoe.mirai.internal.event.JvmMethodListenersInternal.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:155)
                            at net.mamoe.mirai.internal.event.JvmMethodListenersInternal.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:26)
                            at net.mamoe.mirai.internal.event.JvmMethodListenersInternal$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:162)
                            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)
                            ... 4 more
                            Caused by: java.lang.reflect.InvocationTargetException
                            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.JvmMethodListenersInternal.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:148)
                            ... 10 more
                            Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.contains(Object)" because "groups" is null
                            at Cat-0.1.0.mirai2.jar//com.hn.cat.listener.CatEventHandler.onMessage(CatEventHandler.java:33)
                            ... 15 more

                            你好我是纯小白,刚搭建好mirai登录上QQ 载入这个软件之后获取到随便一个消息就报错了 可以帮我一下吗

                            F 1 条回复 最后回复 回复 引用 0
                            • F
                              firefairy @这个小暗不太冷 最后由 firefairy 编辑

                              @这个小暗不太冷 在 MarryPlugin 娶群友插件 中说:

                              because "groups" is null

                              在config/com.hn.mao的CatConfig.yml配置: 权限群列表: [群号1,群号2]

                              要在关闭mcl的状态下填写

                              这 1 条回复 最后回复 回复 引用 0
                              • 这
                                这个小暗不太冷 @firefairy 最后由 编辑

                                @firefairy 非常感谢!辛苦了

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