MiraiForum

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

    Petpet - 生成各种奇怪的图片

    插件发布
    73
    320
    75001
    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.
    • Dituon
      Dituon @RainbowDash last edited by

      @RainbowDash 已修复,使用3.3

      RainbowDash 1 Reply Last reply Reply Quote 0
      • Dituon
        Dituon @zyckk4 last edited by

        @zyckk4 使用3.3

        Angrybird1997 1 Reply Last reply Reply Quote 0
        • Z
          zyckk4 摸鱼 last edited by

          谢谢!另有一个建议:当选择自己的图片来制图的时候(respondImage=true),可否让图片的位置在整个messageChain的最后时命令仍能生效,而不是在中间,否则手机上似乎无法做到

          Dituon 1 Reply Last reply Reply Quote 0
          • Dituon
            Dituon @zyckk4 last edited by Dituon

            @zyckk4 使用keyCommand并禁用mustAt
            例如 roll [图片]

            1 Reply Last reply Reply Quote 0
            • Angrybird1997
              Angrybird1997 @Dituon last edited by

              @Dituon 大大您好,我也更新到了3.3,但是还是会报错:
              2022-06-28 22:38:54 V/Bot.2323561927: [地瓜(629458475)] 地小瓜(827859034) -> pet[mirai:at:827859034]
              2022-06-28 22:38:54 I/stdout: 无效的key:
              2022-06-28 22:38:54 I/stdout: 生成图片失败
              2022-06-28 22:39:09 V/Bot.2323561927: [地瓜(629458475)] 地小瓜(827859034) -> pet[mirai:at:827859034] fencing
              2022-06-28 22:39:11 V/Bot.2323561927: Group(629458475) <- [mirai:image:{5E085526-81EC-C3C4-42E7-5C95B55B29F8}.gif]

              直接pet@xxx会报错,但是pet@xxx fencing,就行了。

              Angrybird1997 Dituon 2 Replies Last reply Reply Quote 0
              • Angrybird1997
                Angrybird1997 @Angrybird1997 last edited by

                @Angrybird1997 我用的是docker版的ubuntu,是不是缺少什么依赖包导致了2.6版本之后pet@XXX会出现错误。

                Dituon 2 Replies Last reply Reply Quote 0
                • Dituon
                  Dituon @Angrybird1997 last edited by Dituon

                  @Angrybird1997
                  7dcffa28-5469-463e-9774-32a60c8da0ef-image.png
                  无法复现

                  1 Reply Last reply Reply Quote 0
                  • Dituon
                    Dituon @Angrybird1997 last edited by

                    @Angrybird1997 提供详细系统参数,例如java版本

                    Angrybird1997 1 Reply Last reply Reply Quote 0
                    • Angrybird1997
                      Angrybird1997 @Dituon last edited by

                      @Dituon

                      Mirai文件夹下面JAVA的版本:
                      IMPLEMENTOR="Eclipse Adoptium"
                      IMPLEMENTOR_VERSION="Temurin-17.0.3+7"
                      JAVA_VERSION="17.0.3"
                      JAVA_VERSION_DATE="2022-04-19"

                      Ubuntu版本:
                      LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
                      Distributor ID: Ubuntu
                      Description: Ubuntu 22.04 LTS
                      Release: 22.04
                      Codename: jammy

                      Dituon 1 Reply Last reply Reply Quote 0
                      • Dituon
                        Dituon @Angrybird1997 last edited by

                        @Angrybird1997 插件的配置文件发出来,我尝试复现一下

                        Angrybird1997 1 Reply Last reply Reply Quote 0
                        • Angrybird1997
                          Angrybird1997 @Dituon last edited by

                          @Dituon
                          配置文件我没有动过:

                          content:
                          version: 3.3
                          command: pet
                          probability: 30
                          antialias: true
                          disabled: []
                          keyCommand: false
                          commandMustAt: false
                          respondImage: false
                          respondSelfNudge: false
                          headless: false

                          Dituon 1 Reply Last reply Reply Quote 0
                          • Dituon
                            Dituon @Angrybird1997 last edited by

                            @Angrybird1997 还是无法复现,方便进群交流吗,我编译一个会抛出错误的版本

                            Angrybird1997 1 Reply Last reply Reply Quote 0
                            • Angrybird1997
                              Angrybird1997 @Dituon last edited by

                              @Dituon 感谢,这就进群

                              1 Reply Last reply Reply Quote 0
                              • RainbowDash
                                RainbowDash @Dituon last edited by

                                @Dituon 可以了,谢谢大佬

                                1 Reply Last reply Reply Quote 0
                                • 紅
                                  紅涙にしずむ供人の憂い last edited by

                                  2022-06-30 03:34:12 E/main: Exception in coroutine <unnamed>
                                  java.lang.ClassCastException: class net.mamoe.mirai.internal.contact.FriendImpl cannot be cast to class net.mamoe.mirai.contact.Group (net.mamoe.mirai.internal.contact.FriendImpl and net.mamoe.mirai.contact.Group are in unnamed module of loader 'app')
                                  at petpet-3.3.jar//xmmt.dituon.plugin.Petpet.onNudge(Petpet.java:58)
                                  at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
                                  at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:574)
                                  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:749)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                  这是个啥啊呜呜呜

                                  Dituon 1 Reply Last reply Reply Quote 0
                                  • 紅
                                    紅涙にしずむ供人の憂い last edited by

                                    配置文件
                                    content:
                                    version: 3.3
                                    command: pet
                                    probability: 100
                                    antialias: true
                                    disabled: []
                                    keyCommand: false
                                    commandMustAt: true
                                    respondImage: false
                                    respondSelfNudge: true
                                    headless: false
                                    pet@xxx
                                    提示无效的key:
                                    这啥情况....

                                    1 Reply Last reply Reply Quote 0
                                    • 紅
                                      紅涙にしずむ供人の憂い last edited by

                                      pet@xxxx无效,pet接任意字符可以对自己头像触发,,,实在不知道为什么

                                      Dituon 1 Reply Last reply Reply Quote 0
                                      • Dituon
                                        Dituon @紅涙にしずむ供人の憂い last edited by

                                        @紅涙にしずむ供人の憂い 无法响应来自好友的戳一戳请求。

                                        1 Reply Last reply Reply Quote 0
                                        • Dituon
                                          Dituon @紅涙にしずむ供人の憂い last edited by

                                          @紅涙にしずむ供人の憂い 下一个版本会重写指令解析部分,请持续关注

                                          紅 1 Reply Last reply Reply Quote 0
                                          • Q
                                            q981612327 last edited by

                                            直接更新到了最新版,生成图片乱码了,发送pet获取keylist也是乱码
                                            image.png

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