MarryPlugin 娶群友插件
-
项目地址:https://github.com/xiatianYa/MarryPlugin/tree/MarrPlugin
启动后需要手动修改config/com.hn.cat的CatConfig.yml配置文件//这里放你需要使用的群号 权限群列表: [12345678,12345678,12345678]
命令列表:
- 列表娶群友 随机从群里抽取一位今天发过消息的幸运儿做你老婆
- 订婚@XXX 向某人求婚 概率60%成功
- 当小三@XXX 抢走别人的老婆 or 老公 概率35%成功
- 离婚 与老婆离婚 概率60%成功
- 群老婆列表 查看今天结婚的群友
//萌新写的代码 有什么问题会及时修改 //有什么问题可以评论留言 谢谢
-
github仓库 404了喔
是不是没转换成公开仓库呀? -
大佬,仓库404进不去
-
@YuukiTriple 抱歉抱歉 忘记改成公开了
-
@IM2eR0 修改了 可以访问了 抱歉抱歉
-
大佬会考虑加入自定义触发词和自定义回复内容等功能吗
-
@YuukiTriple 可以
-
使用发现了一些bug
A有对象为B,离婚→离婚成功→当小三@C→失败→订婚@C→“显示A有对象为B”
A与B互为对象→C当小三@A→成功→“提示C当小三成功,你的群老公是C”→查询群老婆列表→“B的群老婆为C”
“”中为可能有问题的地方 -
@firefairy 我看看 待会更新
-
此回复已被删除! -
@firefairy 好了 应该是没有问题了 还有问题的话 评论就好了
-
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 时提供 CoroutineExceptionHandlerCannot 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 载入这个软件之后获取到随便一个消息就报错了 可以帮我一下吗
-
@这个小暗不太冷 在 MarryPlugin 娶群友插件 中说:
because "groups" is null
在config/com.hn.mao的CatConfig.yml配置: 权限群列表: [群号1,群号2]
要在关闭mcl的状态下填写
-
@firefairy 非常感谢!辛苦了