{"id":21368542,"url":"https://github.com/itxtech/mirai-console-loader","last_synced_at":"2025-04-12T19:49:30.862Z","repository":{"id":37728633,"uuid":"295908684","full_name":"iTXTech/mirai-console-loader","owner":"iTXTech","description":"模块化、轻量级且支持完全自定义的 mirai 加载器。","archived":false,"fork":false,"pushed_at":"2023-12-24T05:39:40.000Z","size":220,"stargazers_count":741,"open_issues_count":14,"forks_count":61,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-12T19:49:28.827Z","etag":null,"topics":["mirai"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iTXTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-16T03:03:36.000Z","updated_at":"2025-04-10T10:57:17.000Z","dependencies_parsed_at":"2024-11-22T07:36:13.525Z","dependency_job_id":null,"html_url":"https://github.com/iTXTech/mirai-console-loader","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmirai-console-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmirai-console-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmirai-console-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmirai-console-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iTXTech","download_url":"https://codeload.github.com/iTXTech/mirai-console-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mirai"],"created_at":"2024-11-22T07:25:04.361Z","updated_at":"2025-04-12T19:49:30.840Z","avatar_url":"https://github.com/iTXTech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mirai Console Loader\n\n[![GitHub release](https://img.shields.io/github/v/release/itxtech/mirai-console-loader?label=stable)](https://github.com/iTXTech/mirai-console-loader/releases)\n[![Maven Central](https://img.shields.io/maven-central/v/org.itxtech/mcl)](https://repo.maven.apache.org/maven2/org/itxtech/mcl/)\n[![MiraiForum](https://img.shields.io/badge/post-on%20MiraiForum-yellow)](https://mirai.mamoe.net/topic/177)\n\n模块化、轻量级且支持完全自定义的 [mirai](https://github.com/mamoe/mirai) 加载器。\n\n开发者请参见 [MCL 开发文档](docs/README.md)。\n\n## 简介\n\n`iTX Technologies Mirai Console Loader`（下简称`MCL`）采用模块化设计，包含以下几个基础模块：\n\n* `Module` 模块管理器，用于加载和执行模块，`MCL`的主要功能均由模块实现。模块执行有各个阶段，详见开发文档。\n* `Config` 配置文件模块，用于配置的持久化。\n* `Package` 包管理器。\n* `Downloader` 下载器模块，用于下载文件，并实时返回进度。\n* `Logger` 日志模块，用于向控制台输出日志。\n\n## [`MCL` 命令行文档](cli.md)\n\n该文档将教会您如何`安装插件`，`禁用和启用脚本`，`修改包的更新频道`等操作。\n\n## 使用 `iTXTech MCL`\n\n### 一键安装\n\n[iTXTech MCL Installer](https://github.com/iTXTech/mcl-installer) 能在所有操作系统上一键安装 `iTXTech MCL`。\n\n### 手动安装\n\n1. 安装 Java 运行时（版本必须 \u003e= 11）\n2. 从 [Releases](https://github.com/iTXTech/mirai-console-loader/releases) 下载最新版本的`MCL`\n3. 解压到某处\n4. 在命令行中执行`.\\mcl`以启动`MCL`\n\n#### 在`*nix`下通过命令行安装\n\n```bash\nmkdir mcl\ncd mcl\nwget https://github.com/iTXTech/mirai-console-loader/releases/download/v2.1.2/mcl-2.1.2.zip\nunzip mcl-2.1.2.zip\nchmod +x mcl\n./mcl\n```\n\n## `Mirai Repo` 列表\n\n* [iTXTech](https://repo.itxtech.org) - **默认** - Cloudflare Pages\n* [Mamoe](https://mcl.repo.mamoe.net) - GitHub Pages\n* [GitHub](https://github.com/project-mirai/mirai-repo-mirror) - 源仓库\n\n## `Maven Repo` 列表\n\n* [Maven Central](https://repo1.maven.org/maven2/) - `Maven Central`上游\n* [Aliyun](https://maven.aliyun.com/repository/public) - **默认**，阿里云`Maven`镜像，国内访问速度快\n* [HuaweiCloud](https://mirrors.huaweicloud.com/repository/maven) - 华为云`Maven`镜像，阿里云不可用时的备选方案\n\n## 安装`MCL Module`扩展组件\n\n1. 在 `mcl` 运行目录下新建 `modules` 目录\n2. 将 目标Jar 放入该目录\n3. ~~编辑 `config.json` 中 `module_packages` 字段，添加入 `jar文件名（不带扩展名）:包名`~~ \n\n新版 MCL Module 加载将使用 Java SPI Service 的加载方式，不需要再配置 `module_packages` 字段\n\n## `MCL` 默认支持 `Mirai 2.11` 及以上插件格式\n\n若需要默认使用旧版插件格式，请移除`config.json`的`archiveSuffix`中的`.mirai2.jar`字段。\n\n## 开源许可证\n\n    iTXTech Mirai Console Loader\n    Copyright (C) 2020-2022 iTX Technologies\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as\n    published by the Free Software Foundation, either version 3 of the\n    License, or (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitxtech%2Fmirai-console-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitxtech%2Fmirai-console-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitxtech%2Fmirai-console-loader/lists"}