koishi-plugin-vsinger-gacha 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -25
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,14 +19,12 @@ VSinger 收藏集抽卡插件(Koishi 4.x):六位角色的官方收藏集
|
|
|
19
19
|
- **图鉴长图**:液态玻璃背景 + 官方「大隐藏/小隐藏」角标 + 镭射标,超大图自动分张防 OOM
|
|
20
20
|
- **管理指令**:给卡(管理员可凭空发,普通用户须自己拥有)、设/加积分、查积分
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## 安装(选择一种)
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### 方式 A:一条命令装(不用 npm 帐号)
|
|
24
|
+
### 方式 A:npm 一行装(推荐)
|
|
27
25
|
|
|
28
26
|
```bash
|
|
29
|
-
npm i
|
|
27
|
+
npm i koishi-plugin-vsinger-gacha
|
|
30
28
|
```
|
|
31
29
|
|
|
32
30
|
`koishi.yml` 加一行后重启:
|
|
@@ -36,16 +34,16 @@ plugins:
|
|
|
36
34
|
vsinger-gacha: {}
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
### 方式 B:下载
|
|
40
|
-
|
|
41
|
-
下载 [koishi-plugin-vsinger-gacha.zip](https://github.com/zb23333ww/koishi-plugin-vsinger-gacha/releases/download/v1.0.0/koishi-plugin-vsinger-gacha.zip) → 解压 → 整个文件夹放进 Koishi 项目的 `node_modules/` → `koishi.yml` 加 `vsinger-gacha: {}` → 重启。
|
|
42
|
-
|
|
43
|
-
### 方式 C:npm 正式包(发布后可用)
|
|
37
|
+
### 方式 B:下载 tgz 直装(npm 不可用时)
|
|
44
38
|
|
|
45
39
|
```bash
|
|
46
|
-
npm i koishi-plugin-vsinger-gacha
|
|
40
|
+
npm i https://github.com/zb23333ww/koishi-plugin-vsinger-gacha/releases/latest/download/koishi-plugin-vsinger-gacha.tgz
|
|
47
41
|
```
|
|
48
42
|
|
|
43
|
+
### 方式 C:下载 zip 手动放
|
|
44
|
+
|
|
45
|
+
[koishi-plugin-vsinger-gacha.zip](https://github.com/zb23333ww/koishi-plugin-vsinger-gacha/releases/latest/download/koishi-plugin-vsinger-gacha.zip) → 解压 → 整个文件夹放进 Koishi 的 `node_modules/` → 配置 → 重启。
|
|
46
|
+
|
|
49
47
|
### 图鉴(可选)
|
|
50
48
|
|
|
51
49
|
`/抽卡`、`/签到`、积分、管理指令**零依赖**即可用。
|
|
@@ -119,25 +117,20 @@ npm i @napi-rs/canvas
|
|
|
119
117
|
MIT
|
|
120
118
|
|
|
121
119
|
|
|
122
|
-
##
|
|
120
|
+
## 素材库(卡图 + 动态卡)
|
|
123
121
|
|
|
124
|
-
|
|
122
|
+
插件包只带**缩略图**(图鉴用)+ 卡池数据,原图和动态卡单独放在 Releases 的「素材库」:
|
|
125
123
|
|
|
126
|
-
|
|
|
124
|
+
| 附件 | 大小 | 内容 |
|
|
127
125
|
| --- | --- | --- |
|
|
128
|
-
| `assets-cards.tar` | 1.6 GB | 423
|
|
129
|
-
| `assets-videos.tar` | 1.1 GB | 145 个动态卡 mp4 |
|
|
126
|
+
| [`assets-cards.tar`](https://github.com/zb23333ww/koishi-plugin-vsinger-gacha/releases/download/v1.0.0/assets-cards.tar) | 1.6 GB | 423 张官方原图(1242×1863)+ 274 张镭射版 |
|
|
127
|
+
| [`assets-videos.tar`](https://github.com/zb23333ww/koishi-plugin-vsinger-gacha/releases/download/v1.0.0/assets-videos.tar) | 1.1 GB | 145 个动态卡 mp4 |
|
|
130
128
|
|
|
131
|
-
解压到 `cardsDir
|
|
132
|
-
|
|
133
|
-
## 开发
|
|
129
|
+
解压到 `cardsDir`(默认 `data/vsinger-gacha/cards`):
|
|
134
130
|
|
|
135
131
|
```bash
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
tar xf assets-cards.tar -C data/vsinger-gacha/cards
|
|
133
|
+
tar xf assets-videos.tar -C data/vsinger-gacha/cards
|
|
138
134
|
```
|
|
139
135
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
卡图、卡池信息来自哔哩哔哩「收藏集」公开接口,版权归哔哩哔哩及原作者所有;
|
|
143
|
-
本插件仅用于个人学习与同好群内的收藏展示,请勿用于商业用途。
|
|
136
|
+
**不装也能用**:卡图按需单张自动下载(约 1MB/张),图鉴直接用包内缩略图。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-vsinger-gacha",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "VSinger 收藏集抽卡 / 签到积分 / 图鉴(Koishi 插件,一次性安装)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
"optionalDependencies": {
|
|
48
48
|
"@napi-rs/canvas": "^0.1.52"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|