@tiantianbetter 求分享一下配置文件
MC57348 发布的帖子
-
RE: ChatLearning——让bot学会你的群聊
@Koreyoshi 虽然我这边能正常用,但是每次启动就会有这个错误
2023-02-23 00:05:30
Traceback (most recent call last):
File "ChatClass.py", line 407, in run
File "ChatMerge.py", line 96, in main
File "ChatMerge.py", line 78, in getfile
File "ChatMerge.py", line 25, in Merge
File "ChatClass.py", line 46, in pickle_load
EOFError: Ran out of input -
RE: 【涩图插件喜加一】mirai-console-lolicon
@Samarium150 我换了一个网络之后,使用forward方式来输出图片,在控制台是可以显示出来有这个行动以及撤回操作,但是QQ群当中只会出现正在寻找的消息,无法将图片发送至群里。目前带有R18的图片基本上都输出不出来
2023-02-07 00:13:26 V/Bot.: [] 鸟了白future() -> llc get 明日方舟&r18 2023-02-07 00:13:26 V/Bot.: Group() <- [mirai:quote:[mirai:source:ids=[121551], internalIds=[-549473486], from group 3 to 8 at 1675700006], content=llc get 明日方舟&r18]让我找找哈... 2023-02-07 00:13:27 I/Lolicon: {"error":"","data":[{"pid":91452431,"p":0,"uid":24297867,"title":"静谧夜雨","author":"高 速公鹿","r18":false,"width":4000,"height":3000,"tags":["R-18","絮雨","Whisperain","明日方舟","Arknights","泳装","swimsuit","R18","液体","liquid","巨乳","large breasts","高潮","ウィスパーレイン(アークナイツ)","絮雨(明日方舟)","特米米泳装"],"ext":"jpg","aiType":0,"uploadDate":1627058101000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg"}}]} 2023-02-07 00:13:33 V/Bot.3: Group(8) <- ForwardMessage(preview=[怪怪的bot: 标题: 静谧夜雨\n作者: 高速 公鹿 (uid: 24297867)\n标签: [R-18, 絮雨, Whisperain, 明日方舟, Arknights, 泳装, swimsuit, R18, 液体, liquid, 巨乳, large breasts, 高潮, ウィスパーレイン(アークナイツ), 絮雨(明日方舟), 特米米泳装]\n链接: https://pixiv.net/artworks/91452431\n代理链接:https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg, 怪怪的bot: [图片]], title=神秘的聊天记录, brief=[Lolicon], source=聊天记录, summary=查看2条转发消息, nodeList=[Node(senderId=3509197003, time=1675700010, senderName=怪怪的bot, messageChain=标题: 静谧夜雨\n作者: 高速公鹿 (uid: 24297867)\n标签: [R-18, 絮雨, Whisperain, 明日方舟, Arknights, 泳装, swimsuit, R18, 液体, liquid, 巨乳, large breasts, 高潮, ウィスパーレイン(アークナイツ), 絮 雨(明日方舟), 特米米泳装]\n链接: https://pixiv.net/artworks/91452431\n代理链接:https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg), Node(senderId=3, time=1675700011, senderName=怪怪的bot, messageChain=[mirai:image:{875B12D6-6840-0384-4577-2BB45EF872B3}.jpg, width=1200, height=900, size=795715, type=JPG, isEmoji=false])]) 2023-02-07 00:13:33 I/Lolicon: Group(8)进入冷却 2023-02-07 00:13:33 I/Lolicon: Group(8)NOTIFICATION已撤回
-
RE: 【涩图插件喜加一】mirai-console-lolicon
@Samarium150
然后现在报错这个问题2023-02-01 11:15:51 V/Bot.: [通辽舞萌dx交流群()] Cinnamon「专注于12+」() -> llc get 泳装 2023-02-01 11:15:51 V/Bot.: Group() <- [mirai:quote:[mirai:source:ids=[118262], internalIds=[1318792613], from group to 875479061 at 1675221350], content=llc get 泳装]让我找找哈... 2023-02-01 11:15:51 E/Lolicon: java.net.UnknownHostException: 不知道这样的主机。 (api.lolicon.app) java.net.UnknownHostException: 不知道这样的主机。 (api.lolicon.app) at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52) at java.base/java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1059) at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1668) at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1003) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1658) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1524) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:164) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:129) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1589)
-
RE: 【涩图插件喜加一】mirai-console-lolicon
今天刚用这个插件然后出了问题:发了指令不出图,但是两次错误原因完全不同(QQ号已做处理)
exception 1:2023-01-29 01:24:00 V/Bot.: [通辽舞萌dx交流群()] 鸟了白future再换头像() -> llc get 明日方舟 2023-01-29 01:24:01 V/Bot.: Group(1) <- [mirai:quote:[mirai:source:ids=[116301], internalIds=[-1808303918], from group 383693339 to 875479061 at 1674926640], content=llc get 明日方舟]正在获取图片... 2023-01-29 01:24:01 I/Lolicon: {"error":"","data":[{"pid":100297782,"p":0,"uid":3483539,"title":"リィン","author":"Hudeci(ふでし)","r18":false,"width":2000,"height":2800,"tags":["アークナイツ","明日方舟","Arknights","リィ ン(アークナイツ)","令(明日方舟)","令","Order","竜娘","龙娘"],"ext":"jpg","aiType":0,"uploadDate":1659847663000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2022/08/07/13/47/43/100297782_p0_master1200.jpg"}}]} 2023-01-29 01:24:03 W/Lolicon: Exception in executing command `[mirai:source:ids=[116301], internalIds=[-1808303918], from group 383693339 to 875479061 at 1674926640]llc get 明日方舟` java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByFile@4d8803d1, considering use gif/png/bmp/jpg format. image header: 3C 21 44 4F 43 54 59 50 45 20 68 74 6D 6C 3E 0A 3C 68 74 6D 6C 3E 0A 20 20 20 20 3C 68 31 at net.mamoe.mirai.internal.message.image.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:159) at net.mamoe.mirai.internal.contact.CommonGroupImpl$uploadImage$lambda-16$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) 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) 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)
exception 2:
2023-01-29 01:13:44 V/Bot.: [通辽舞萌dx交流群()] 鸟了白future再换头像() -> llc 来一张 oshama 2023-01-29 01:13:44 I/Lolicon: request body: {"r18":0,"num":1,"uid":[],"keyword":"","tag":[["oshama"]],"size":["regular"],"proxy":"https://i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2023-01-29 01:13:45 V/Bot.3: Group() <- [mirai:quote:[mirai:source:ids=[116270], internalIds=[-717864385], from group to at 1674926024], content=llc 来一张 oshama]正在获取图片... 2023-01-29 01:13:55 E/Lolicon: io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://api.lolicon.app/setu/v2, socket_timeout=unknown] ms io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://api.lolicon.app/setu/v2, socket_timeout=unknown] ms at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.plugins.HttpTimeoutKt.SocketTimeoutException(HttpTimeout.kt:235) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:79) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1589) Caused by: java.net.SocketTimeoutException: timeout at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:143) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:96) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) ... 3 more
不是很清楚为什么。
然后关于tag的问题:tag是只能找作品类别的tag而并非角色的tag吗?