请问插件可以分群开关么
Latest posts made by A-n-k-a
-
RE: Molly-Mirai 接入茉莉云聊天机器人
大佬,可以看看这是什么问题吗
2022-11-15 01:07:05 E/Molly: Exception in coroutine Plugin org.laolittle.plugin.molly.Molly of Molly
java.lang.NoSuchMethodError: 'void io.ktor.client.request.HttpRequestKt.url$default(io.ktor.client.request.HttpRequestBuilder, java.lang.String, java.lang.String, int, java.lang.String, kotlin.jvm.functions.Function1, int, java.lang.Object)'
at Molly-1.3.1.mirai2.jar//org.laolittle.plugin.molly.utils.KtorOkHttp.post(KtorOkHttp.kt:80)
at Molly-1.3.1.mirai2.jar//org.laolittle.plugin.molly.model.MollyApiService.request(MollyApiService.kt:39)
at Molly-1.3.1.mirai2.jar//org.laolittle.plugin.molly.FriendMessageListener$main$3$1.invokeSuspend(FriendMessageListener.kt:19)
at Molly-1.3.1.mirai2.jar//org.laolittle.plugin.molly.FriendMessageListener$main$3$1.invoke(FriendMessageListener.kt)
at Molly-1.3.1.mirai2.jar//org.laolittle.plugin.molly.FriendMessageListener$main$3$1.invoke(FriendMessageListener.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeFriendMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:255)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeFriendMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeFriendMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:506)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.FilterEventChannel$intercept$1.invokeSuspend(EventChannel.kt:524)
at net.mamoe.mirai.event.FilterEventChannel$intercept$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.FilterEventChannel$intercept$1.invoke(EventChannel.kt)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:58)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:58)
at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:120)
at net.mamoe.mirai.internal.event.EventListeners.access$process(EventListeners.kt:28)
at net.mamoe.mirai.internal.event.EventListeners$callListeners$2$1.invokeSuspend(EventListeners.kt:85)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
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)之前一直都正常使用的,最近mcl更新后就出现了问题,私聊报错,群聊里@机器人,有反应,但调用不了茉莉云
-
RE: Pixiv插件 查看排行榜 以图搜图 以图搜番 查看原图 查看作者作品 搜标签
作者您好,刚刚又发现setu功能报错了
2022-01-31 13:22:50 V/Bot.198089894: [小Anka、小小不死鸟~(720664733)] ꧁不̶死̶鸟̶A̶n̶k̶a̶༼༽(207426530) -> setu
2022-01-31 13:23:13 W/stderr: java.net.ConnectException: Failed to connect to files.yande.re/67.15.129.210:443
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.utils.ImageUtil$Companion.getImage(ImageUtil.kt:45)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.sexy.SexyCenter.yande(SexyCenter.kt:68)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.sexy.SexyCenter.init(SexyCenter.kt:38)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invokeSuspend(Pixiv.kt:67)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invoke(Pixiv.kt)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invoke(Pixiv.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invokeSuspend(MessageSubscribersBuilder.kt:510)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invoke(MessageSubscribersBuilder.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invoke(MessageSubscribersBuilder.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:253)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:132)
2022-01-31 13:23:13 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-01-31 13:23:13 W/stderr: Caused by: java.net.ConnectException: Connection timed out: no further information
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.Net.pollConnect(Native Method)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
2022-01-31 13:23:13 W/stderr: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
2022-01-31 13:23:13 W/stderr: at java.base/java.net.Socket.connect(Socket.java:633)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
2022-01-31 13:23:13 W/stderr: ... 49 more
2022-01-31 13:23:13 W/Pixiv: java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@6f51c723, considering use gif/png/bmp/jpg format. image header:
java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@6f51c723, considering use gif/png/bmp/jpg format. image header:
at net.mamoe.mirai.internal.message.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:160)
at net.mamoe.mirai.internal.contact.GroupImpl$uploadImage$lambda-19$$inlined$runBIO$1.invoke(CoroutineUtils.kt:194)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
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:39)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
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)2022-01-31 13:23:13 V/Bot.198089894: Group(720664733) <- 发送图片失败
我的配置文件填写如下⬇️
-
RE: Pixiv插件 查看排行榜 以图搜图 以图搜番 查看原图 查看作者作品 搜标签
作者您好,目前试用您的插件发现排行榜、查看图片、根据id查看图片能正常使用,但是以图搜图、以图搜番没反应,控制台也没有报错
⬇️psid功能正常⬇️
⬇️ptst和ptsf没反应⬇️
另外就是请问一下“当前共有:2张,现处在1张”怎么翻下一张
-
RE: 简易pixiv插件
作者您好,我在试用插件时出现了问题
发送/p pid 95639429,机器人回复bot收到了提取调用!
随后控制台显示错误信息如下:
2022-01-31 12:37:22 W/Pic: Exception in executing command[mirai:source:[6565],[1042267622]]/p pid 95639429
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 kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
at kotlin.reflect.jvm.internal.KCallableImpl.callBy(KCallableImpl.kt:112)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1$invokeSuspend$$inlined$runBIO$1.invoke(CoroutineUtils.kt:194)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
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:39)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
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: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of typeorg.orisland.bean.pmodel.Tags
from Array value (tokenJsonToken.START_ARRAY
)
at [Source: (String)"{"id":"95639429","title":"nya?","illustType":0,"xRestrict":0,"restrict":0,"sl":2,"url":"https://i.pximg.net/c/250x250_80_a2/custom-thumb/img/2022/01/20/00/00/16/95639429_p0_custom1200.jpg","description":"","tags":["女 の子","オリジナル","猫耳","獣耳","へんにゃの","なちょ猫","Nachoneko","ぬいぐるみ","ぺたん座り","オリジナル10000users入り"],"userId":"3036679","userName":"甘城なつき","width":1000,"height":1376,"pageCount":2,"isBookmarkable":true,"bookmarkData":{"id":"14479629429","private":false},"alt":"#女の子 nya? - 甘城なつき的插画","titleCaptionTra"[truncated 292 chars]; line: 1, column: 214] (through reference chain: org.orisland.bean.pmodel.JsonRootBean["tags"])
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1741)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1515)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1462)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeFromArray(BeanDeserializer.java:638)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:210)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:186)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:313)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:176)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4675)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3630)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3598)
at org.orisland.Mycommand.pid(Mycommand.java:78)
... 21 more
请问如何解决