MiraiForum

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

    Solved Mirai现在有保存聊天记录的插件吗

    使用交流
    6
    6
    703
    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.
    • B
      BrightSu last edited by

      如题,在论坛找了一圈似乎没找到
      有没有支持保存聊天记录(如果能包含图片链接就更好了)到数据库的插件,或者如果原生支持的话如何启用
      感谢

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

        你可以尝试自己写一个:

        bot.subscribeAlways {
            val imageLink: MutableMap<String> = mutableMapOf() //图片ID和链接
            message.filterIsInstance<Image>().forEach { i -> imageLink.add(i.imageId to i.queryUrl()) }
            val serializedMessage = message.serializeToMiraiCode() // 序列化后的消息
        }
        
        1 Reply Last reply Reply Quote 2
        • xiaoyv404
          xiaoyv404 摸鱼 last edited by

          你可以自己写一个啊= =反正又不是很难的说

          1 Reply Last reply Reply Quote 0
          • Q
            QFLS @BrightSu last edited by

            @BrightSu 截止今天 已经有不少类似的插件了,建议更改一下帖子的状态。

            1 Reply Last reply Reply Quote 0
            • Topic has been marked as solved  B BrightSu 
            • U
              unikevin last edited by

              请问可以提供相关插件link/关键字吗,使用搜索功能未果。需求是归档指定群和好友的聊天记录、图片、视频@BrightSu @QFLS @StageGuard 多有打扰,请原谅。

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

                @unikevin
                https://github.com/cssxsh/mirai-hibernate-plugin
                通过数据库储存聊天记录

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