mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2026-05-04 23:23:40 +08:00
Add GitHub Actions build workflow (#14)
Some checks failed
Build Plugin / build (push) Has been cancelled
Some checks failed
Build Plugin / build (push) Has been cancelled
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jie65535 <29452349+jie65535@users.noreply.github.com>
This commit is contained in:
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build Plugin
|
||||
run: ./gradlew buildPlugin
|
||||
|
||||
- name: Upload Plugin Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: plugin
|
||||
path: build/mirai/
|
||||
43
README.md
43
README.md
@@ -1,30 +1,55 @@
|
||||
# mirai-console-jcf-plugin
|
||||
基于Mirai Console的Curseforge插件
|
||||
基于Mirai Console的Curseforge与Modrinth插件
|
||||
|
||||
# 请注意:本插件需要申请 [Curseforge Api Key](https://console.curseforge.com/) 才可使用!!
|
||||
[](https://github.com/jie65535/mirai-console-jcf-plugin/actions/workflows/build.yml)
|
||||
|
||||
# 请注意:使用 CurseForge 功能需要申请 [Curseforge Api Key](https://console.curseforge.com/)!Modrinth 功能无需 API Key 即可使用。
|
||||
|
||||
## Introduction
|
||||
|
||||
允许用户通过`QQ`对[Curseforge](https://www.curseforge.com/)网站进行搜索查询
|
||||
允许用户通过`QQ`对[Curseforge](https://www.curseforge.com/)和[Modrinth](https://modrinth.com/)网站进行搜索查询
|
||||
|
||||
现在支持搜索`Minecraft`相关内容,可以通过命令搜索模组、整合包、资源包。
|
||||
现在支持搜索`Minecraft`相关内容,可以通过命令搜索模组、整合包、资源包等。
|
||||
|
||||
支持查看文件列表与其下载地址,单独查看文件的更新日志。
|
||||
|
||||
支持订阅项目更新,有新版本时自动推送通知。
|
||||
|
||||
## Usage
|
||||
指令
|
||||
- /jcf help # 查看帮助
|
||||
- /jcf setApiKey # 设置Curseforge API Key
|
||||
- /jcf setSubsSender \<qq\> # 设置订阅信息推送bot(qq id)
|
||||
- /jcf setCheckInterval \<seconds\> # 设置更新检查间隔(单位:秒)
|
||||
|
||||
分类搜索命令(可配置)
|
||||
### CurseForge 分类搜索命令(可配置)
|
||||
- 搜索模组: cfmod \<filter\>
|
||||
- 搜索整合包: cfpack \<filter\>
|
||||
- 搜索资源包: cfres \<filter\>
|
||||
- 搜索存档: cfword \<filter\>
|
||||
- 搜索存档: cfworld \<filter\>
|
||||
- 搜索水桶服插件: cfbukkit \<filter\>
|
||||
- 搜索附加: cfaddon \<filter\>
|
||||
- 搜索定制: cfcustom \<filter\>
|
||||
|
||||
### Modrinth 分类搜索命令(可配置)
|
||||
- 搜索模组: mrmod \<filter\>
|
||||
- 搜索整合包: mrpack \<filter\>
|
||||
- 搜索资源包: mrres \<filter\>
|
||||
- 搜索光影: mrshader \<filter\>
|
||||
- 搜索插件: mrplugin \<filter\>
|
||||
- 搜索数据包: mrdata \<filter\>
|
||||
|
||||
### 订阅管理命令
|
||||
**CurseForge 订阅**
|
||||
- /jcf subStat # 查看 CurseForge 订阅处理状态
|
||||
- /jcf idleSubs # 使 CurseForge 订阅器闲置
|
||||
- /jcf runSubs # 使 CurseForge 订阅器恢复运行
|
||||
|
||||
**Modrinth 订阅**
|
||||
- /jcf mrSubStat # 查看 Modrinth 订阅处理状态
|
||||
- /jcf mrIdleSubs # 使 Modrinth 订阅器闲置
|
||||
- /jcf mrRunSubs # 使 Modrinth 订阅器恢复运行
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
@@ -51,7 +76,11 @@
|
||||
- [x] 获取文件下载地址
|
||||
- [ ] 获取依赖的项目
|
||||
---
|
||||
- [ ] 模组更新订阅,更新时通知订阅者
|
||||
- [x] 模组更新订阅,更新时通知订阅者
|
||||
- [x] 集成 [Modrinth](https://modrinth.com/) 平台
|
||||
- [x] 搜索模组、整合包、资源包、光影、插件、数据包
|
||||
- [x] 查看项目详情与版本列表
|
||||
- [x] 订阅项目更新通知
|
||||
- [ ] 设置代理
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user