【涩图插件喜加一】mirai-console-lolicon
-
@samarium150
修改为i.pixiv.re后可以正常运行,但在发送图片的时候url仍是从i.pixiv.cat获取,前缀添加https://
则会出现于无法识别主机的错误正在获取图片... 2022-02-12 12:27:10 I/Lolicon: request body: {"r18":0,"num":1,"uid":[],"keyword":"","tag":[],"size":["regular"],"proxy":"i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2022-02-12 12:27:11 I/Lolicon: {"error":"","data":[{"pid":84767496,"p":0,"uid":19730113,"title":"艾拉","author":"冬月 流桜","r18":false,"width":2400,"height":3600,"tags":["みんなのリメイク","プラスティック・メモリーズ","可塑性记忆","艾拉","Isla","アイラ","Ayra","はいてない","真空","魅惑のふともも","魅惑的大腿","ニーソ","过膝袜","おっぱい","欧派","ツインテー ル","双马尾"],"ext":"jpg","uploadDate":1601696904000,"urls":{"regular":"https://i.pixiv.cat/img-master/img/2020/10/03/12/48/24/84767496_p0_master1200.jpg"}}]} 标题: 艾拉 作者: 冬月 流桜 (uid: 19730113) 标签: [みんなのリメイク, プラスティック・メモリーズ, 可塑性记忆, 艾拉, Isla, アイラ, Ayra, はいてない, 真空, 魅惑のふと もも, 魅惑的大腿, ニーソ, 过膝袜, おっぱい, 欧派, ツインテール, 双马尾] 链接: https://pixiv.net/artworks/84767496 2022-02-12 12:27:21 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-master/img/2020/10/03/12/48/24/84767496_p0_master1200.jpg, connect_timeout=unknown ms] io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-master/img/2020/10/03/12/48/24/84767496_p0_master1200.jpg, connect_timeout=unknown ms] at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException(HttpTimeout.kt:183) at io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:77) at io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1) at io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.base/java.net.SocksSocketImpl.connect(Unknown Source) at java.base/java.net.Socket.connect(Unknown Source) at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295) at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) ... 3 more
config.yml文件
# Get命令和Adv命令的模式: None/Whitelist/Blacklist mode: None # 是否保存图片 save: false # 是否使用已保存的图片作为缓存 cache: false # 是否提示Get和Adv命令已受理 notify: true # 是否发送图片信息 verbose: true # 图片发送模式: Simple/Flash/Forward messageType: Simple # 图片大小: Original/Regular/Small/Thumb/Mini size: Regular # 获取Pixiv图片的反向代理 proxy: i.pixiv.re # 默认的撤回时间(单位:s) recall: 30 # 是否撤回图片信息 recallImgInfo: false # 是否撤回图片 recallImg: true # 默认的冷却时间(单位:s) cooldown: 60 # 标签过滤模式: None/Whitelist/Blacklist tagFilterMode: None # 标签过滤器,白名单模式只发送包含指定标签的图片,黑名单模式只发送不包含指定标签的图片。(仅Get命令,Adv命令中不生效) tagFilter: []
-
@ariasprinter
proxy: "https://i.pixiv.re"
加https时需要双引号 -
@samarium150 可以正常运行了,感谢大佬
-
如果我已经有了代理,还需要用这个反代地址吗?不知道这个地址什么时候会失效,我想直接用官方的api换了好几个域名都不行。
-
-
明白了 不知道有这个官方 还以为是你取得名字233 也就是说你里面没有写refer所以必须反代咯
-
@superen 是,因为没有设计直接从
i.pximg.net
拿图的方法 -
莫名其妙的出了这个问题,是网络的原因吗?
config的proxy: 'https://i.pixiv.re'2022-03-12 14:34:28 E/Lolicon: io.ktor.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://i.pixiv.re/img-master/img/2016/09/21/16/56/20/59095452_p0_master1200.jpg, socket_timeout=unknown] ms
io.ktor.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://i.pixiv.re/img-master/img/2016/09/21/16/56/20/59095452_p0_master1200.jpg, socket_timeout=unknown] ms
at io.ktor.client.features.HttpTimeoutKt.SocketTimeoutException(HttpTimeout.kt:207)
at io.ktor.client.engine.okhttp.OkHttpEngineKt.mapExceptions(OkHttpEngine.kt:175)
at io.ktor.client.engine.okhttp.OkHttpEngineKt.access$mapExceptions(OkHttpEngine.kt:1)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1$1$1.invoke(OkHttpEngine.kt:167)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1$1$1.invoke(OkHttpEngine.kt:163)
at io.ktor.utils.io.ByteBufferChannel.writeAvailable(ByteBufferChannel.kt:1493)
at io.ktor.utils.io.ByteBufferChannel.write$suspendImpl(ByteBufferChannel.kt:1523)
at io.ktor.utils.io.ByteBufferChannel.write(ByteBufferChannel.kt)
at io.ktor.utils.io.ByteWriteChannel$DefaultImpls.write$default(ByteWriteChannel.kt:99)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1.invokeSuspend(OkHttpEngine.kt:163)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1.invoke(OkHttpEngine.kt)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1.invoke(OkHttpEngine.kt)
at io.ktor.utils.io.CoroutinesKt$launchChannel$job$1.invokeSuspend(Coroutines.kt:132)
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: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.net.SocketTimeoutException: timeout
at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:677)
at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:686)
at okhttp3.internal.http2.Http2Stream$FramingSource.read(Http2Stream.kt:382)
at okhttp3.internal.connection.Exchange$ResponseBodySource.read(Exchange.kt:276)
at okio.RealBufferedSource.read(RealBufferedSource.kt:82)
at io.ktor.client.engine.okhttp.OkHttpEngineKt$toChannel$1$1$1.invoke(OkHttpEngine.kt:165)
... 15 more2022-03-12 14:34:29 V/Bot.3286744685: Friend(1705781334) <- 网络连接失败/超时或图片已被删除,之后再试试吧
-
@Asuna521 确实是网络的原因
-
设置了whitelist的group还需要额外添加trust用户嘛。。感觉麻烦了
-
@Anluoxuan 因为作用不同,受信任用户可以自行设置冷却时间等属性
-
@Samarium150 啊,那我是不是遇到bug了。添加了group之后群里的人发指令提示“当前模式为whitelist”,QQ号@群号 的命令已被无视
-
@Anluoxuan 是5.2.1吗,我测试一下
-
@Samarium150 I/plugin: Successfully loaded plugin mirai-console-lolicon v4.2.1
看来我得更新了。。 -
@Anluoxuan v4升级v5需要迁移一下设置和缓存
-
@Samarium150 好的,我看到了,感谢大佬
-
@Samarium150 大佬,我更新了之后还是有这种情况
-
@Anluoxuan
我检查一下群员和群得同时在白名单,主要是考虑到用户会不给白名单的群里某些人权限 -
@Samarium150 大佬 我发在群里后控制台也没有提醒 但是对设置是可以响应的 一让发图就沉默了 不过我要是发私信会提示不能在当前聊天类型使用
-
@luckygbean 补一下 挂了梯子就控制台显示能正常发了 但是群里依然看不到