查看群列表 “gl,GL,grouplist,GroupList,群列表”
这个指令经常会被群友误触发,希望能设置一下权限,仅限 botAdministrators 可用。
(偶尔聊到英文单词的时候会用到gl、GL等内容bot就会直接返回机器人所加过的全部群号)
WINE 发布的最佳帖子
-
RE: 随机色图插件
WINE 发布的最新帖子
-
RE: 【涩图插件喜加一】mirai-console-lolicon
使用 /lolicon adv 命令的时候,会无法返回图片,显示网络超时。
但常规的 /lolicon get 可以正常返回图片,看日志里似乎显示使用 /lolicon adv 时拉取的是 i.pixiv.cat 而不是 i.pixiv.re,感觉像是被墙了,大佬帮忙看一下是哪里的问题。
下面是错误日志。2022-04-14 17:02:04 V/Bot.16********: [测试(5421******)] 红豆泥(1*********) -> /lolicon adv {"num":3} 2022-04-14 17:02:04 I/Lolicon: {"r18":0,"num":3,"uid":null,"keyword":"","tag":null,"size":null,"proxy":"i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2022-04-14 17:02:05 I/Lolicon: {"error":"","data":[{"pid":79230183,"p":0,"uid":4370,"title":"ジョンストン","author":"DD","r18":false,"width":1250,"height":1250,"tags":["艦隊これくしょん","舰队collection","艦これ","舰C","ジョンストン","Johnston"],"ext":"png","uploadDate":1580591236000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png"}},{"pid":85682602,"p":0,"uid":577853,"title":"オイゲンさん放熱中","author":"もふナマコ","r18":false,"width":707,"height":1000,"tags":["艦これ","舰C","艦隊これくしょん","舰队collection","プリンツ・オイゲン","欧根亲王","尻 神様","尻神样","パイオツ・オイゲン","欧派亲王","汗","sweat","パンツ!パンツです!","内裤!是内裤!"],"ext":"jpg","uploadDate":1605414160000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.jpg"}},{"pid":85886968,"p":0,"uid":2641586,"title":"Mona (モナ)","author":"真紗弥光一","r18":false,"width":1800,"height":2546,"tags":["原神","Genshin Impact","GenshinImpact","Mona(GenshinImpact)","アストローギスト・モナ・メギストス","阿斯托洛吉斯·莫 娜·梅姬斯图斯","モナ(原神)","莫娜(原神)","モナ","Mona","莫娜"],"ext":"jpg","uploadDate":1606230010000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.jpg"}}]} 2022-04-14 17:02:15 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png, connect_timeout=unknown ms] io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png, 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 2022-04-14 17:03:01 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧 > 2022-04-14 17:03:11 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.jpg, connect_timeout=unknown ms] io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.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 2022-04-14 17:03:11 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧 2022-04-14 17:03:21 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.jpg, connect_timeout=unknown ms] io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.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 2022-04-14 17:03:21 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧 2022-04-14 17:03:21 E/Lolicon: java.lang.IllegalArgumentException: message is empty java.lang.IllegalArgumentException: message is empty at net.mamoe.mirai.internal.contact.GroupImpl.sendMessage(GroupImpl.kt:183) at net.mamoe.mirai.console.command.MemberCommandSender.sendMessage$suspendImpl(CommandSender.kt:583) at net.mamoe.mirai.console.command.MemberCommandSender.sendMessage(CommandSender.kt) at mirai-console-lolicon-5.0.0-beta.7.mirai.jar//io.github.samarium150.mirai.plugin.lolicon.command.Lolicon.advanced(Lolicon.kt:215) at mirai-console-lolicon-5.0.0-beta.7.mirai.jar//io.github.samarium150.mirai.plugin.lolicon.command.Lolicon$advanced$1.invokeSuspend(Lolicon.kt) 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) 2022-04-14 17:05:04 V/Bot.16********: [测试(5421******)] 红豆泥(1*********) -> /lolicon get 明日方舟 2022-04-14 17:05:04 I/Lolicon: request body: {"r18":2,"num":1,"uid":[],"keyword":"","tag":[["明日方舟"]],"size":["regular"],"proxy":"https://i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2022-04-14 17:05:16 I/Lolicon: {"error":"","data":[{"pid":84975440,"p":0,"uid":14163270,"title":"三马开日","author":"乐 竹","r18":true,"width":3379,"height":2160,"tags":["R-18","绘画","painting","明日方舟","Arknights","临光","Nearl","瑕光","Blemishine","鞭刃","Whislash","R18","百合","yuri","群交","アークナイツ"],"ext":"jpg","uploadDate":1602516187000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2020/10/13/00/23/07/84975440_p0_master1200.jpg"}}]} 2022-04-14 17:05:16 V/Bot.16********: Group(5421******) <- 标题: 三马开日\n作者: 乐竹 (uid: 14163270)\n标签: [R-18, 绘画, painting, 明日方舟, Arknights, 临光, Nearl, 瑕光, Blemishine, 鞭刃, Whislash, R18, 百合, yuri, 群交, アークナイツ]\n链 接: https://pixiv.net/artworks/84975440 2022-04-14 17:05:20 V/Bot.16********: Group(5421******) <- [mirai:image:{8054EFA9-E0F8-4F94-A309-7A5FE3C3D2ED}.jpg]
-
RE: B站订阅插件,动态、视频、直播订阅 @全体成员
大佬好,使用最新版本bilibili-helper-1.1.1.mirai.jar的时候截图也会出现登录下浮框遮挡动态内容的情况,这个问题有解决办法么。
-
RE: 随机色图插件
查看群列表 “gl,GL,grouplist,GroupList,群列表”
这个指令经常会被群友误触发,希望能设置一下权限,仅限 botAdministrators 可用。
(偶尔聊到英文单词的时候会用到gl、GL等内容bot就会直接返回机器人所加过的全部群号) -
RE: Pixiv插件 查看排行榜 以图搜图 以图搜番 查看原图 查看作者作品 搜标签
@nekoer 试了很多方法,最后我把配置目录和插件删掉了,然后重新安装了一遍插件解决了问题,很奇怪,目前正常使用没有什么发现什么问题。
-
RE: Pixiv插件 查看排行榜 以图搜图 以图搜番 查看原图 查看作者作品 搜标签
使用 ptst-图片 的时候代码会爆红,返回 请输入正确的命令 ptst-图片 。
ptsf- 以及其他功能都能正常使用,saucenao的api key我也刷新了一次重新填写了进去问题还是没有解决,辛苦大佬帮忙看看。2021-08-17 17:32:51 V/Bot.*********: [测试(*********)] admin(*********) -> ptst-[mirai:image:{A544EE47-F856-3F18-C070-BBCA0B9E0DD3}.jpg] 2021-08-17 17:32:52 V/Bot.*********: Event: BeforeImageUploadEvent(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@1ea71e8a) 2021-08-17 17:32:52 V/Bot.*********: Event: Succeed(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@1ea71e8a, image=[mirai:image:{027CEDC3-4EED-B11B-CDA4-CBF44670D61E}.png]) 2021-08-17 17:32:52 V/Bot.*********: Event: BeforeImageUploadEvent(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@583acfa5) 2021-08-17 17:32:52 V/Bot.*********: Event: Succeed(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@583acfa5, image=[mirai:image:{22A8EEF8-4CBA-95F9-41E8-430026CBEE73}.png]) 2021-08-17 17:32:52 V/Bot.*********: Event: BeforeImageUploadEvent(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@1094a79d) 2021-08-17 17:32:52 V/Bot.*********: Event: Succeed(target=Group(*********), source=net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@1094a79d, image=[mirai:image:{2A03A8A1-7FDF-4799-8D3C-E1F7A18A914B}.png]) 2021-08-17 17:32:54 W/stderr: java.lang.NullPointerException 2021-08-17 17:32:54 W/stderr: at com.hcyacg.search.Saucenao.picToSearch(Saucenao.kt:86) 2021-08-17 17:32:54 W/stderr: at com.hcyacg.search.Saucenao$picToSearch$1.invokeSuspend(Saucenao.kt) 2021-08-17 17:32:54 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) 2021-08-17 17:32:54 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) 2021-08-17 17:32:54 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) 2021-08-17 17:32:54 V/Bot.*********: Event: GroupMessagePreSendEvent(target=Group(*********), message=请输入正确的命令 ptst-图片) 2021-08-17 17:32:54 V/Bot.*********: Group(*********) <- 请输入正确的命令 ptst-图片 2021-08-17 17:32:54 V/Bot.*********: Event: GroupMessagePostSendEvent(target=Group(*********), message=请输入正确的命令 ptst-图片, exception=null, receipt=net.mamoe.mirai.message.MessageReceipt@6414c896)
-
RE: 随机色图插件
感谢dalao的插件~
目前使用 super open setu 后 bot 所在的全部群都会启用该插件,未来会有支持单独对,某一个群进行插件开关么。
如果能支持修改对应功能触发的指令会有更好的体验,gkd等在日常群聊中还是会经常使用的,比较容易误触发。