MiraiForum

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

    CaiyunDream 彩云小梦续写

    插件发布
    kotlin jvm mirai-console
    10
    32
    4766
    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.
    • tsudzuki
      tsudzuki 摸鱼 last edited by tsudzuki

      kotlin编写的简单的接入彩云小梦的mirai-console插件
      由于看到某个Native插件,发现还挺好玩的,但是又不能用

      项目地址
      Release

      使用前准备
      与机器人私聊发送 #登录 后,按照机器人提示进行操作
      当然,你也可以通过手动输入uid的方式登录
      请参阅此处
      然后手动修改 config/CaiyunAI 内的配置文件

      使用方法
      群聊发送 续写 后发送标题和正文
      发送 继续 即可接续上文进行续写

      TODO

      • 支持持续续写 完成
      • 支持切换模型 完成

      1638254674704.jpg

      1638274250079.jpg

      1 Reply Last reply Reply Quote 2
      • tsudzuki
        tsudzuki 摸鱼 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • 白
          白嫖怪林先生 last edited by

          捧场,八哥测试姬。

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

            @白嫖怪林先生 ?

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

              就是续写输入标题后不到五秒钟就提示输入超时

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

                @白嫖怪林先生 这是我的问题,我已经上传了新的jar包,暂时删去超时

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

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • R
                    rickyliyiqi last edited by

                    你好,可以让继续只回复新的部分吗,有点刷屏

                    tsudzuki 1 Reply Last reply Reply Quote 0
                    • tsudzuki
                      tsudzuki 摸鱼 @rickyliyiqi last edited by

                      @rickyliyiqi 我到时候稍微改一下,或者说是放在合并消息里面

                      1 Reply Last reply Reply Quote 0
                      • tsudzuki
                        tsudzuki 摸鱼 last edited by

                        更新1.0.2
                        支持切换模型
                        继续 所产生的内容全部放至合并转发消息,避免刷屏

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

                          怎么结束续写?

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

                            @白嫖怪林先生 10s过后没有继续就结束了,或者直接喊“停”

                            1 Reply Last reply Reply Quote 0
                            • 不
                              不能吃的土 last edited by

                              #更换模型 没有反应啊

                              tsudzuki 1 Reply Last reply Reply Quote 0
                              • tsudzuki
                                tsudzuki 摸鱼 @不能吃的土 last edited by

                                @不能吃的土 检查版本

                                不 1 Reply Last reply Reply Quote 0
                                • 不
                                  不能吃的土 @tsudzuki last edited by

                                  @tsudzuki 重启就好了大概是哪里出错了

                                  tsudzuki 1 Reply Last reply Reply Quote 0
                                  • tsudzuki
                                    tsudzuki 摸鱼 @不能吃的土 last edited by

                                    @不能吃的土 可以看一下控制台有没有报错

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

                                      发消息不回应唉,有权限设置么

                                      tsudzuki 1 Reply Last reply Reply Quote 0
                                      • tsudzuki
                                        tsudzuki 摸鱼 @saltfish13 last edited by tsudzuki

                                        @saltfish13 试试重启mirai-console,我好像疏漏了些东西,还有登录是需要私聊的

                                        1 Reply Last reply Reply Quote 0
                                        • tsudzuki
                                          tsudzuki 摸鱼 last edited by

                                          更新 1.0.3

                                          https://github.com/LaoLittle/CaiyunDream-Mirai/releases/tag/1.0.3

                                          修复 首次使用登陆后无法切换模型必须重启console的错误

                                          登录时验证码错误可重复输入

                                          1 Reply Last reply Reply Quote 0
                                          • 空
                                            空蚀233 last edited by

                                            大佬,我是QQ上那个私聊你的人,这是昨天崩了的代码,麻烦大佬看看是什么问题,谢谢啦
                                            2021-12-19 22:08:55 E/main: Exception in coroutine Bot 1260806510.EventDispatcher
                                            net.mamoe.mirai.event.events.EventCancelledException: exception thrown when broadcasting GroupMessagePreSendEvent
                                            at net.mamoe.mirai.internal.contact.GroupSendMessageImplKt.broadcastMessagePreSendEvent(GroupSendMessageImpl.kt:38)
                                            at net.mamoe.mirai.internal.contact.GroupImpl.sendMessage(GroupImpl.kt:165)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$3$1.invokeSuspend(FollowUpListener.kt:76)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$3$1.invoke(FollowUpListener.kt)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$3$1.invoke(FollowUpListener.kt)
                                            at net.mamoe.mirai.event.MessageSubscribersBuilder$case$1$2.invokeSuspend(MessageSubscribersBuilder.kt:178)
                                            at net.mamoe.mirai.event.MessageSubscribersBuilder$case$1$2.invoke(MessageSubscribersBuilder.kt)
                                            at net.mamoe.mirai.event.MessageSubscribersBuilder$case$1$2.invoke(MessageSubscribersBuilder.kt)
                                            at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
                                            at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
                                            at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$invokeSuspend$$inlined$whileSelectMessages$default$5$4.invokeSuspend(select.kt:685)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$invokeSuspend$$inlined$whileSelectMessages$default$5$4.invoke(select.kt)
                                            at org.laolittle.plugin.caiyun.messageService.FollowUpListener$main$2$1$invokeSuspend$$inlined$whileSelectMessages$default$5$4.invoke(select.kt)
                                            at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:432)
                                            at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                                            at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
                                            at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
                                            at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
                                            at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
                                            at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
                                            at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
                                            at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
                                            at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
                                            at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:160)
                                            at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1)
                                            at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.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: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=SupervisorJobImpl{Cancelled}@d4e264d

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