【涩图插件喜加一】mirai-console-lolicon
-
@ccyellowstar 为什么不贴日志?
如果是i.pixiv.cat
超时,看40楼,不好使的话加https://
前缀再试。如果是自己设置的网络代理,那应该不是插件的问题 -
-
@ccyellowstar 怪,我回头改一下码
-
@samarium150 我现在遇到了有些群聊不认主人的情况
我要设置涉及主人权限的东西他就说只有管理员能操作 -
-
@samarium150 有种被ntr了的感觉(?
-
@ccyellowstar
纯爱人震怒嘛,毕竟r18比较敏感 -
This post is deleted! -
请问这个报错是为什么?
2021-12-30 15:50:58 V/Bot.1476569428: X.(3053256083) -> 涩图 来一张 2021-12-30 15:50:58 I/mirai-console-lolicon: {"r18":0,"num":1,"uid":[],"keyword":"","tag":[],"size":["regular"],"proxy":"i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2021-12-30 15:51:00 E/mirai-console-lolicon: java.net.SocketException: http java.net.SocketException: http at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.base/java.net.Socket.connect(Socket.java:609) at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:119) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:283) at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:195) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:249) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:108) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:76) at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:245) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:502) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
我的Config.yml的内容如下:
# Bot所有者账号 master: 1476569428 # Get命令和Adv命令的模式:none/whitelist/blacklist mode: none # 是否保存图片 save: false # 是否使用已保存的图片作为缓存 cache: false # 是否发送图片信息 verbose: true # 是否启用闪照模式 flash: false # 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: []
我的ProxyConfig.yml如下:
# 可选:DIRECT/HTTP/SOCKS type: SOCKS # 地址 hostname: http # 端口 port: 1080
请问是不是挂代理的锅啊?我有VPN,但我不太会改这个文件。
这个涩图就是出不来 -
@jiuler 使用
i.pixiv.re
时一般不需要额外的网络代理除非这个地址也被墙了 -
lolicon add user 1633326794
添加成功
lolicon add group 787655611
添加成功
lolicon trust 1633326794
该用户已经在名单中
lolicon trust 787655611
该用户已经在名单中
2022-01-11 17:47:29 V/Bot.3461209724: [文件存储(787655611)] 透明(1633326794) -> lolicon get机器人没有任何反应,风控问题不存在,使用其他插件可行
-
lolicon get
2022-01-11 17:50:32 I/mirai-console-lolicon: {"r18":0,"num":1,"uid":[],"keyword":"","tag":[],"size":["regular"],"proxy":"https://i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null}
2022-01-11 17:50:33 I/mirai-console-lolicon: {"error":"","data":[{"pid":94569510,"p":0,"uid":46847494,"title":"甘雨","author":"Emduck","r18":false,"width":2607,"height":4333,"tags":["GenshinImpact","原神","Genshin Impact","甘雨(原神)","Ganyu (Genshin Impact)","女の子","女孩子","少女","young girl","girl"],"ext":"jpg","uploadDate":1638632459000,"urls":{"regular":"https://i.pixiv.cat/img-master/img/2021/12/05/00/40/59/94569510_p0_master1200.jpg"}}]}
标题: 甘雨
作者: Emduck (uid: 46847494)
标签: [GenshinImpact, 原神, Genshin Impact, 甘雨(原神), Ganyu (Genshin Impact), 女の子, 女孩子, 少女, young girl, girl]
链接: https://pixiv.net/artworks/94569510
2022-01-11 17:50:44 E/mirai-console-lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-master/img/2021/12/05/00/40/59/94569510_p0_master1200.jpg, connect_timeout=unknown ms]
io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-master/img/2021/12/05/00/40/59/94569510_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:75)
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:510)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:119)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:283)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:195)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:249)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:108)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:76)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:245)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:502)
... 3 more网络连接失败/超时或图片已被删除,之后再试试吧
控制台直接输入命令
-
@touming 问题已解决,原因是因为插件需要依赖chat-command插件
-
感谢前面的兄弟,把代理的https;//删了就解决问题了
-
好消息,光速被封,才用了一会儿,就被风控了
-
2022-01-12 03:53:13 V/Bot.3135336478: Group(906810758) <- 参数不匹配, 你是否想执行: \n(/)lolicon add <type> <id> (参数不足)\n(/)lolicon 添加 <type> <id> (参数不足)\n(/)lolicon adv <jsonArgs> (参数不足)\n(/)lolicon 高级 <jsonArgs> (参数不足)\n(/)lolicon distrust <id> (参数不足)\n(/)lolicon 不信任 <id> (参数不足)\n(/)lolicon get <tagArgs> (参数不足)\n(/)lolicon 来一张 <tagArgs> (参数不足)\n(/)lolicon help (参数不足)\n(/)lolicon 帮助 (参数不足)\n(/)lolicon reload (参数不足)\n(/)lolicon 重载 (参数不足)\n(/)lolicon set <property> <value> (参数不足)\n(/)lolicon 设置 <property> <value> (参数不足)\n(/)lolicon trust <id> (参数不足)\n(/)lolicon 信任 <id> (参数不足)
2022-01-12 03:53:19 V/Bot.3135336478: Event: GroupRecall(bot=Bot(3135336478), authorId=1372058799, messageIds=[77402], messageInternalIds=[1824280329], messageTime=1641930790, operator=NormalMember(1372058799), group=Group(906810758), author=NormalMember(1372058799)) -
-
大佬,昨天我用i.pixiv.re这个还可以,但是今天就不行了,是也被墙掉了么
-
@wangzhengyr 应该没有,如果你看到日志里图是从
i.pixiv.cat
拿的,就改一下设置,加https
或者去掉试一下 -
@samarium150 我试了好多种格式好像还是访问的
i.pixiv.cat
, 打断点调试也确定是传入的i.pixiv.re
参数可能是那个接口出问题了?我临时把url手动替换了一下