Molly-Mirai 接入茉莉云聊天机器人
-
@星灵剑圣 是说在本地自定义万金油回复并且可以选择是否开启么?下个版本更新我会加上
-
-
@tsudzuki
是茉莉云的万金油回复,我问了下客服,他说可以机器人客服端控制不回复,我看了下帮助文档,所以能不能加个开关,选择是否把接口响应回复的json里带"plugin":null的给拦截了,不让机器人发送出去呢看到更新了,感谢 -
@星灵剑圣 已经加了哦
更新1.2.0
-
@星灵剑圣 万金油是什么
-
@tsudzuki 您好,为什么我添加了插件填写了信息之后,在群聊艾特机器人,机器人没有回复,而且控制台也没有输出任何信息,但是茉莉云显示调用了api
-
@墨白随影 在 Molly-Mirai 接入茉莉云聊天机器人 中说:
@tsudzuki 您好,为什么我添加了插件填写了信息之后,在群聊艾特机器人,机器人没有回复,而且控制台也没有输出任何信息,但是茉莉云显示调用了api
找到原因了,新版的mcl配置文件夹的名称不是 ./confing/Molly
而是 ./confing/org.laolittle.plugin.molly.Molly
把 org.laolittle.plugin.molly.Molly文件夹改成 Molly就好了 -
2022-02-13 14:35:30 E/Molly: Exception in coroutine Plugin Molly of Molly
java.lang.NoClassDefFoundError: io/ktor/util/reflect/TypeInfoJvmKt
at org.laolittle.plugin.molly.utils.KtorOkHttp.post(KtorOkHttp.kt:96)
at org.laolittle.plugin.molly.utils.KtorOkHttp$post$1.invokeSuspend(KtorOkHttp.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
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)
Caused by: java.lang.ClassNotFoundException: io.ktor.util.reflect.TypeInfoJvmKt
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass$mirai_console(JvmPluginClassLoader.kt:110)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass(JvmPluginClassLoader.kt:51)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 33 more在私聊机器人之后出现了大片的红字报错,机器人没有在qq回复我,但是茉莉云官网那边能看到已调用开放接口……
-
@月森优姬 在群聊@机器人的话,控制台无报错,但也没有回复,茉莉云那边同样有接口调用的数量增加。检查过文件夹,不是楼上的那个文件夹名称的问题。
-
@月森优姬 更新mirai版本
-
您好,我想让机器人发送语音,所以在茉莉云添加了词条并且上传了音频文件,机器人可以正常识别到关键词并且发送语音且无报错,但是语音在QQ群里无法成功接收,这是什么情况?我尝试了上传mp3格式和wav格式,都无法正常接收
-
你好,请问我在群里@茉莉机器人之后,查看茉莉官方控制台发现有api调用并产生了回复,但是群内并没有回复,是什么原因呢
-
插件加入之后在茉莉云能够看到已经回答的内容但是机器人这里报错群里也莫得回复😖
-
@zxcxllwh 我也遇到了这个问题...私聊会正常回复;但是在群里,虽然控制台上可以看到机器人回复了,但是在qq群里并没有回复
-
@saratoga-no-one 我猜测应该不是插件的问题https://github.com/mamoe/mirai/issues/1925
-
@柒夏orz 更新mirai
-
这周二时候配置好一直在正常使用的 今天早些时候突然不可用了 机器人控制台也没法获取到记录 在收到消息时会有报错
这会是网络问题吗 还是什么原因呢...2022-04-01 21:56:22 E/Molly: Exception in coroutine Plugin org.laolittle.plugin.molly.Molly of Molly
io.ktor.client.features.ServerResponseException: Server error(https://i.mly.app/reply: 502 . Text: "<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
"
at io.ktor.client.features.DefaultResponseValidationKt$addDefaultResponseValidation$1$1.invokeSuspend(DefaultResponseValidation.kt:48)
at io.ktor.client.features.DefaultResponseValidationKt$addDefaultResponseValidation$1$1.invoke(DefaultResponseValidation.kt)
at io.ktor.client.features.DefaultResponseValidationKt$addDefaultResponseValidation$1$1.invoke(DefaultResponseValidation.kt)
at io.ktor.client.features.HttpCallValidator.validateResponse(HttpCallValidator.kt:54)
at io.ktor.client.features.HttpCallValidator.access$validateResponse(HttpCallValidator.kt:33)
at io.ktor.client.features.HttpCallValidator$Companion$install$3.invokeSuspend(HttpCallValidator.kt:133)
at io.ktor.client.features.HttpCallValidator$Companion$install$3.invoke(HttpCallValidator.kt)
at io.ktor.client.features.HttpCallValidator$Companion$install$3.invoke(HttpCallValidator.kt)
at io.ktor.client.features.HttpSend$Feature$install$1.invokeSuspend(HttpSend.kt:96)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
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) -
@Tito-XD 服务器错误
-
@tsudzuki 了解了 第二天时已经自己恢复了
-
可以给不同的群设置独立开关吗