Molly-Mirai 接入茉莉云聊天机器人
-
项目地址:Molly-Mirai
Release:release接入茉莉云机器人,茉莉云机器人为免费聊天机器人
可前往 茉莉云官网 注册使用将本插件放入mirai下的plugins目录内,启动一次mirai-console以生成配置文件,然后关闭mirai-console并前往修改Molly配置文件 ( 位于
./config/Molly/MollyConfig.yml
)输入你自己的Api-Key和Api-Secret,开启mirai-console
在群聊内@机器人即可使用
私聊直接聊天即可设置项:
api_key和api_secret
上文已解释
name
机器人昵称(推荐与茉莉云机器人昵称一致)
replyTimes
呼唤机器人后机器人持续回复的次数
doQuoteReply
机器人回复消息是否引用回复效果如图
-
竟然是亚托莉哈哈哈
-
@fuyon 用着用着就会出这个报错,然后就只能重启才能用了
-
错误代码:c0001,提示我key或secret不正确,可我是直接复制进去的,可否截图一下yml里看看怎么填的,谢谢
-
@dreamer 我之后检查一下
-
@william-jw 填入单引号内
-
-
-
@tsudzuki 新的试了下好多了,就是这ai有点过于智障了😂
-
@dreamer 哈哈,当然他们也一直在改进
(说不定以后更智障) -
-
配置文件会重置?
-
@an_122 在mirai-console关闭的时候进行配置操作
-
为啥我在Android上使用,只能回复聊天等消息?之后就不回复了
-
<font color="#DD1C1A">[ERROR]</font>java.net.SocketException: Socket is closed
<font color="#DD1C1A">[ERROR]</font> at com.android.org.conscrypt.AbstractConscryptSocket.checkOpen(AbstractConscryptSocket.java:584)
<font color="#DD1C1A">[ERROR]</font> at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:194)
<font color="#DD1C1A">[ERROR]</font> at com.android.org.conscrypt.ConscryptEngineSocket$SSLOutputStream.write(ConscryptEngineSocket.java:650)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.okio.Okio$1.write(Okio.java:78)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.okio.AsyncTimeout$1.write(AsyncTimeout.java:157)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.okio.RealBufferedSink.flush(RealBufferedSink.java:222)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.http.Http1xStream.finishRequest(Http1xStream.java:163)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:768)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:642)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:248)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
<font color="#DD1C1A">[ERROR]</font> at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.LetMollyConnectKt.request(LetMollyConnect.kt:73)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$reply$2.invokeSuspend(Reply.kt:23)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$reply$2.invoke(Unknown Source:8)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$reply$2.invoke(Unknown Source:4)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConversationBuilder.invoke(Convert.kt:9)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt.conversation$execute(Convert.kt:18)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt.access$conversation$execute(Convert.kt:1)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invokeSuspend(Convert.kt:20)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invoke(Unknown Source:8)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invoke(Unknown Source:4)
<font color="#DD1C1A">[ERROR]</font> at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
<font color="#DD1C1A">[ERROR]</font> at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
<font color="#DD1C1A">[ERROR]</font> at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt.conversation(Convert.kt:20)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt.reply(Reply.kt:22)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$groupLoopReply$2.invokeSuspend(Reply.kt:103)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$groupLoopReply$2.invoke(Unknown Source:8)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.model.ReplyKt$groupLoopReply$2.invoke(Unknown Source:4)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConversationBuilder.invoke(Convert.kt:9)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt.conversation$execute(Convert.kt:18)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt.access$conversation$execute(Convert.kt:1)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invokeSuspend(Convert.kt:20)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invoke(Unknown Source:8)
<font color="#DD1C1A">[ERROR]</font> at org.laolittle.plugin.molly.utils.ConvertKt$conversation$2.invoke(Unknown Source:4)
<font color="#DD1C1A">[ERROR]</font> at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
<font color="#DD1C1A">[ERROR]</font> at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165 -
@an_122 miraiAndroid的话,我也不太保证插件能用,毕竟mirai安卓的插件还是实验性功能
-
@tsudzuki 哦哦,谢谢
-
-
是机器人会发语音了?
-
@白嫖怪林先生 可以自己去设定的