MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    MCL Addon - 在 Mirai Console 中使用MCL管理包和其他高级功能!

    插件发布
    2
    3
    1571
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • P
      PeratX 最后由 编辑

      MCL Addon - GitHub

      必须搭配MCL 1.2及以上版本

      MCL Addon 支持在 Mirai Console
      中访问几乎所有 Mirai Console Loader 命令行指令,并带来更现代化的指令。

      但大部分更改需要使用 Mirai Console Loader
      重启 Mirai Console 。

      安装

      1. 使用MCL命令行
      .\mcl --update-package org.itxtech:mcl-addon --channel stable --type plugin
      
      1. 从 Release 下载

      命令

      /mclc - 传统 MCL 命令行

      > mclc --list-packages //同命令行使用,支持大部分参数
      > mclc --enable/disable/list-script(s) --dry-run 等特殊指令不可用
      

      /mcl - 更现代化的 MCL 命令行

      /mcl info <package>    # 获取包信息
      /mcl install <package> [channel] [type] [version] [lock or unlock]    # 安装包
      /mcl list    # 列出已安装的包
      /mcl remove <package> [delete]    # 移除包
      /mcl run <script>    # 执行脚本load阶段
      /mcl update    # 执行updater脚本
      
      列出mirai-console包的信息
      > mcl info net.mamoe:mirai-console
      
      锁定2.0.0版本的mirai-native
      > mcl install org.itxtech:mirai-native stable plugin 2.0.0 lock
      
      解除版本锁定(此时版本可以随意填写)
      > mcl install org.itxtech:mirai-native stable plugin ? unlock
      
      安装mirai-api-http(默认频道为stable,类型为plugin)
      > mcl install net.mamoe:mirai-api-http
      
      移除mirai-api-http
      > mcl remove net.mamoe:mirai-api-http
      
      移除mirai-api-http,并删除其文件(保留配置文件)
      > mcl remove net.mamoe:mirai-api-http delete
      
      执行announcement脚本抓取MCL公告
      > mcl run announcement
      
      执行updater脚本(将应用包的修改)
      > mcl update
      

      开源许可证

      Copyright (C) 2021 iTX Technologies
      
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU Affero General Public License as
      published by the Free Software Foundation, either version 3 of the
      License, or (at your option) any later version.
      
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Affero General Public License for more details.
      
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
      
      1 条回复 最后回复 回复 引用 2
      • P
        PeratX 最后由 编辑

        本项目作为一个在Mirai Console中使用MCL API的范例,基于此开发GUI也是可行的

        1 条回复 最后回复 回复 引用 0
        • cssxsh
          cssxsh 最后由 编辑

          好耶

          1 条回复 最后回复 回复 引用 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact