MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Mirai-Setu - 在群里获取loliconapi的setu插件

    插件发布
    jvm kotlin plugin 事色图
    54
    108
    19256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Kallen
      Kallen 摸鱼 @白嫖怪林先生 last edited by

      @白嫖怪林先生 可以让我看看你那边怎么写的吗?

      白 2 Replies Last reply Reply Quote 0
      • 白
        白嫖怪林先生 @Kallen last edited by

        @kallen # 插件权限控制设置

        0 为所有人都可以控制

        1 为只有插件主人可以进行配置

        2 为群管理员也可以配置

        3 为拥有权限(mirai-setu:admin)者可以配置

        permitMode: 3

        设置此插件主人的id。

        masterId:

        • 827834816

        设置取图用的 API

        FantasyZoneApi 不需要代理和ApiKey https://api.fantasyzone.cc/#/tu

        LoliconApi 需要ApiKey https://api.lolicon.app/#/setu

        requestApi: LoliconApi

        设置关键字搜图用的 API 建议LoliconApi, FantasyZoneApi 无法保证非R-18, tags 也刷不出来

        FantasyZoneApi 不需要代理和ApiKey https://api.fantasyzone.cc/#/tu

        LoliconApi 需要ApiKey https://api.lolicon.app/#/setu

        searchApi: LoliconApi

        FantasyZoneApi 获取图片类型

        pc 为横向动漫壁纸图片

        m 为纵向动漫壁纸图片

        pixiv 为pixiv库图片

        random 为随机选择图片库 (仅当pixiv时R-18生效)

        fantasyZoneType: pixiv

        设置SauceNAO的APIKEY, 可以不设置, 如果大量使用请自行申请APIkey避免遇到403问题

        sauceNaoApiKey: "89c4b12aea093ef4663820dab6890ab8bdb99b3f"

        设置SauceNAO的数据库

        5为只搜索pixiv数据库

        sauceNaoDataBaseMode: 5

        代理设置

        0 不使用代理

        1 使用http代理

        2 使用socks代理

        代理只对 LoliconApi 色图的获取生效

        proxyConfig: 1
        httpProxy:
        proxy: 'http://127.0.0.1:80'
        socksProxy:
        host: 127.0.0.1
        port: 4001

        反向代理的域名, 修改为i.pximg.net可以直连

        使用直连提高访问稳定性, 但是需要科学上网

        仅对 LoliconApi 生效

        domainProxy: i.pixiv.re

        设置涩图的自动撤回时间

        单位毫秒,-1为不撤回

        autoRecallTime: -1

        1 Reply Last reply Reply Quote 0
        • 白
          白嫖怪林先生 @Kallen last edited by

          @kallen 是这样设置?

          1 Reply Last reply Reply Quote 0
          • Q
            qq1124567127 last edited by

            希望可以加个保存图片到本地的功能分R18文件夹和非R18文件夹

            1 Reply Last reply Reply Quote 0
            • 白
              白嫖怪林先生 last edited by

              请问 怎么改掉只搜索pixiv图库这个选项

              1 Reply Last reply Reply Quote 0
              • 7
                771650247 last edited by

                This post is deleted!
                M 1 Reply Last reply Reply Quote 0
                • M
                  mr_null @771650247 last edited by

                  @771650247 负号去掉

                  7 1 Reply Last reply Reply Quote 0
                  • 7
                    771650247 @mr_null last edited by

                    @mr_null 好的 谢谢 可以了

                    1 Reply Last reply Reply Quote 0
                    • s2221769072
                      s2221769072 last edited by

                      E/main: Exception in coroutine <unnamed>
                      okhttp3.internal.http2.StreamResetException: stream was reset: REFUSED_STREAM
                      at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
                      at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:96)
                      at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)
                      at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)
                      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
                      at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
                      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:1130)
                      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
                      at java.base/java.lang.Thread.run(Thread.java:831)

                      问问时不时出现这个问题是咋回事

                      1 Reply Last reply Reply Quote 0
                      • JOYACEpoor
                        JOYACEpoor last edited by JOYACEpoor

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • S
                          s5280177 last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • S
                            s5280177 last edited by

                            2022-01-12 12:01:19 E/main: Exception in coroutine <unnamed>
                            kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead
                            JSON input: Please submit your key
                            at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
                            at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
                            at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:493)
                            at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:215)
                            at kotlinx.serialization.json.internal.JsonLexer.unexpectedToken(JsonLexer.kt:198)
                            at kotlinx.serialization.json.internal.JsonLexer.consumeNextToken(JsonLexer.kt:188)
                            at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:37)
                            at moe.ruabbit.mirai.setu.FantasyZoneResponse$$serializer.deserialize(FantasyZoneResponse.kt:5)
                            at moe.ruabbit.mirai.setu.FantasyZoneResponse$$serializer.deserialize(FantasyZoneResponse.kt:5)
                            at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
                            at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
                            at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100)
                            at moe.ruabbit.mirai.setu.FantasyZoneRequester.requestSetu(FantasyZoneRequester.kt:159)
                            at moe.ruabbit.mirai.setu.FantasyZoneRequester$requestSetu$1.invokeSuspend(FantasyZoneRequester.kt)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                            at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                            at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                            at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                            at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                            at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                            at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                            at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                            at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                            at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                            at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                            at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                            at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                            at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            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)
                            乍回事啊大佬们(萌新)

                            1 Reply Last reply Reply Quote 0
                            • S
                              s5280177 last edited by s5280177

                              发不出去只有日志里面有发不出去

                              JOYACEpoor 1 Reply Last reply Reply Quote 0
                              • JOYACEpoor
                                JOYACEpoor last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • JOYACEpoor
                                  JOYACEpoor @s5280177 last edited by

                                  @s5280177 FantasyZone现在更新了,需要秘钥才能调用,请使用LoliconApi并设置反代网址为i.pixiv.re

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    s5280177 last edited by

                                    2022-01-13 18:24:58 V/Bot.3135336478: Group(832208489) <- [mirai:quote:[814726],[-235697312]]出现错误, 请联系管理员检查后台或重试\nExpected start of the object '{', but had 'EOF' instead\nJSON input: Please submit your key
                                    2022-01-13 18:24:58 E/main: Exception in coroutine <unnamed>
                                    kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead
                                    JSON input: Please submit your key
                                    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
                                    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
                                    at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:493)
                                    at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:215)
                                    at kotlinx.serialization.json.internal.JsonLexer.unexpectedToken(JsonLexer.kt:198)
                                    at kotlinx.serialization.json.internal.JsonLexer.consumeNextToken(JsonLexer.kt:188)
                                    at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:37)
                                    at moe.ruabbit.mirai.setu.FantasyZoneResponse$$serializer.deserialize(FantasyZoneResponse.kt:5)
                                    at moe.ruabbit.mirai.setu.FantasyZoneResponse$$serializer.deserialize(FantasyZoneResponse.kt:5)
                                    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
                                    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
                                    at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100)
                                    at moe.ruabbit.mirai.setu.FantasyZoneRequester.requestSetu(FantasyZoneRequester.kt:159)
                                    at moe.ruabbit.mirai.setu.FantasyZoneRequester$requestSetu$1.invokeSuspend(FantasyZoneRequester.kt)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                                    at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                                    at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                                    at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
                                    at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
                                    at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
                                    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                    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)
                                    这又是咋回事qwq

                                    JOYACEpoor 1 Reply Last reply Reply Quote 0
                                    • JOYACEpoor
                                      JOYACEpoor @s5280177 last edited by

                                      @s5280177 貌似你还在使用FantasyZone?请在Config中找到插件的配置文件并将所有与FantasyZone有关的改成LoliconApi看看问题是否得到解决

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        saltfish13 last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • 李
                                          李在赣神魔 last edited by

                                          昨天开始报错,没有搜索到指定的涩图,可我用的是涩图来命令。

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            syj_819 last edited by

                                            我也开始有问题了,提示没有搜到指定涩图

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 5 / 6
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact