koishi-plugin-rocom 1.0.13 → 1.0.17
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/lib/atlas-service.d.ts +33 -0
- package/lib/atlas-service.js +439 -0
- package/lib/client.d.ts +19 -0
- package/lib/client.js +101 -1
- package/lib/commands/account.js +1 -0
- package/lib/commands/merchant.js +11 -2
- package/lib/commands/query.js +141 -9
- package/lib/commands/tools.js +104 -0
- package/lib/commands/wiki.js +167 -6
- package/lib/egg-service.d.ts +2 -0
- package/lib/egg-service.js +50 -15
- package/lib/index.d.ts +5 -0
- package/lib/index.js +3153 -188
- package/lib/pet-data-service.d.ts +62 -0
- package/lib/pet-data-service.js +468 -0
- package/lib/render-templates/pet-data/index.html +172 -0
- package/lib/render-templates/pet-data/style.css +553 -0
- package/lib/render-templates/wiki/detail/index.html +84 -0
- package/lib/render-templates/wiki/list/index.html +84 -0
- package/lib/render-templates/wiki/menu/index.html +65 -0
- package/lib/render-templates/wiki/pet/index.html +158 -0
- package/lib/render-templates/wiki/pet/style.css +393 -0
- package/lib/render-templates/wiki/shared/style.css +431 -0
- package/lib/render-templates/wiki/skill/index.html +79 -0
- package/lib/render-templates/wiki/skill/style.css +233 -0
- package/lib/render-templates/wiki/suggestions/index.html +84 -0
- package/lib/render.js +37 -8
- package/lib/types.d.ts +9 -1
- package/lib/user.d.ts +23 -1
- package/lib/user.js +32 -1
- package/lib/wiki-catalog.d.ts +19 -0
- package/lib/wiki-catalog.js +124 -0
- package/lib/wiki-service.d.ts +220 -0
- package/lib/wiki-service.js +1463 -0
- package/package.json +1 -1
- package/readme.md +4 -5
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# koishi-plugin-rocom
|
|
4
4
|
|
|
5
|
-
<img width="
|
|
5
|
+
<img width="200" height="200" alt="image" src="https://github.com/Entropy-Increase-Team/astrbot_plugin_rocom/blob/master/logo.png" />
|
|
6
6
|
|
|
7
7
|
**交流反馈群:1097809141**
|
|
8
|
-
**注意,本项目仍处于开发调试期,可能会有未知BUG的产生。**
|
|
9
8
|
|
|
10
9
|
---
|
|
11
10
|
|
|
@@ -33,7 +32,7 @@ Koishi 版洛克王国数据查询插件。插件基于 WeGame / 后端接口提
|
|
|
33
32
|
- `puppeteer`
|
|
34
33
|
- `rocom`
|
|
35
34
|
|
|
36
|
-
如果图片渲染失败,插件会尽量回落为文字结果;但档案、战绩、背包、阵容、交换大厅、远行商人、活动日历和查蛋配种等功能推荐配合 Puppeteer 使用。
|
|
35
|
+
如果图片渲染失败,插件会尽量回落为文字结果;但档案、战绩、背包、阵容、交换大厅、远行商人、活动日历和查蛋配种等功能推荐配合 Puppeteer 使用。
|
|
37
36
|
|
|
38
37
|
| 功能 | 示例图片 | 功能 | 示例图片 |
|
|
39
38
|
| -------- | -------------------------------------------------- | -------- | -------------------------------------------------- |
|
|
@@ -59,13 +58,13 @@ Koishi 版洛克王国数据查询插件。插件基于 WeGame / 后端接口提
|
|
|
59
58
|
| `merchantPrivateSubscriptionEnabled` | `true` | 是否允许私聊订阅远行商人推送 |
|
|
60
59
|
| `homeSubscriptionEnabled` | `true` | 是否启用家园菜园和灵感订阅推送 |
|
|
61
60
|
| `homeSubscriptionIntervalMinutes` | `5` | 家园订阅检查间隔,单位分钟 |
|
|
62
|
-
| `imageCompressionEnabled` | `true` | 是否对 PNG 图片启用无损压缩 |
|
|
61
|
+
| `imageCompressionEnabled` | `true` | 是否对 PNG 图片启用无损压缩 |
|
|
63
62
|
| `imageCompressionMinBytes` | `262144` | 触发压缩的最小图片大小,单位字节 |
|
|
64
63
|
| `imageCompressionLevel` | `9` | PNG zlib 压缩等级,范围 `0-9`,数值越大通常越小但更耗时 |
|
|
65
64
|
|
|
66
65
|
### 图片压缩设置
|
|
67
66
|
|
|
68
|
-
后台配置页中有单独的“图片压缩设置”分组。Puppeteer 渲染图默认以 JPEG 发送,用于降低图片体积;仍以 PNG 进入发送链路的图片会按该设置对 IDAT 数据做无损重压缩,不会改变图片尺寸、画质或透明度。若压缩失败,或压缩后文件没有变小,会自动发送原图。
|
|
67
|
+
后台配置页中有单独的“图片压缩设置”分组。Puppeteer 渲染图默认以 JPEG 发送,用于降低图片体积;仍以 PNG 进入发送链路的图片会按该设置对 IDAT 数据做无损重压缩,不会改变图片尺寸、画质或透明度。若压缩失败,或压缩后文件没有变小,会自动发送原图。
|
|
69
68
|
|
|
70
69
|
## 快速开始
|
|
71
70
|
|