MiraiForum

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

    百度云 文件同步/备份 插件, 可作为前置插件调用百度云API

    插件发布
    百度云 文件同步
    5
    6
    872
    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.
    • cssxsh
      cssxsh last edited by cssxsh

      Netdisk FileSync Plugin

      基于 Mirai Console 的 文件同步/备份 插件

      Release
      Downloads
      MiraiForum
      maven-central

      本插件可以将接收到的群文件消息同步到百度网盘
      备份的文件在 /apps/${app_name}/${group_id}/

      本插件也可作为前置插件为其他插件提供百度云上传的API

      指令

      OAUTH指令

      指令 描述
      /<baidu-oauth> 按照指令完成百度账户的登陆

      设置

      oauth.yml

      插件上传文件功能需要百度网盘API支持。
      请到 https://pan.baidu.com/union/main/application/personal 申请应用,并将获得的APP信息填入
      信息只在启动时读取,修改后需重启,并使用 /baidu-oauth 认证百度账号

      upload.yml

      • https 使用Https协议下载文件

      在插件项目中引用

      repositories {
          mavenCentral()
      }
      
      dependencies {
          compileOnly("io.github.gnuf0rce:netdisk-filesync-plugin:${version}")
      }
      

      示例代码

          try {
              io.github.gnuf0rce.mirai.NetDisk.getUserInfo()
          } catch (exception: NoClassDefFoundError) { 
              logger.warning { "相关类加载失败,请安装 https://github.com/gnuf0rce/Netdisk-FileSync-Plugin $exception" }
              throw exception
          }
      

      安装

      MCL 指令安装

      ./mcl --update-package io.github.gnuf0rce:netdisk-filesync-plugin --channel stable --type plugin

      手动安装

      1. 运行 Mirai Console 生成plugins文件夹
      2. 从 Releases 下载jar并将其放入plugins文件夹中
      1 Reply Last reply Reply Quote 1
      • MrXiaoM
        MrXiaoM 童心未泯 last edited by MrXiaoM

        你 releases 没附加的文件
        懂了,让他们自己编译(
        哦现在已经上传文件了,那没事了。
        只要是能热备份的功能我都举双手双脚支持

        1 Reply Last reply Reply Quote 1
        • EdgeStar2020
          EdgeStar2020 last edited by

          很厉害,不过暂时没有想到合适的使用场景

          1 Reply Last reply Reply Quote 0
          • Kloping
            Kloping ⭐2021⭐ last edited by

            好牛批

            1 Reply Last reply Reply Quote 0
            • A
              abaoxgg last edited by

              希望可以有将百度指定网盘的文件夹里的文件上传到QQ群的功能

              cssxsh 1 Reply Last reply Reply Quote 0
              • cssxsh
                cssxsh @abaoxgg last edited by

                @abaoxgg

                开 issue 表述具体需求

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