koishi-plugin-onebot-info-image 0.2.0-alpha.3 → 0.2.0-alpha.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +29 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-onebot-info-image",
3
3
  "description": "用onebot api获取用户详细信息/群管理员列表信息,可以发纯文本/合并转发/渲染图片。 现在只做了lagrange和napcat的适配",
4
- "version": "0.2.0-alpha.3+20250923",
4
+ "version": "0.2.0-alpha.6+20250929",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -4,24 +4,45 @@
4
4
 
5
5
  获取成员信息/管理员列表,发送文字/图片/合并转发消息,仅支持onebot
6
6
 
7
- 现在只做了lagrange和napcat的适配
7
+ 推荐使用Napcat
8
+
9
+ #### Napcat平台渲染效果:
10
+ ##### 用户信息:
11
+ ![alt text](docs/napcat_aui.png)
12
+ ##### 群管理列表:
13
+ ![alt text](docs/napcat_al.png)
8
14
 
9
15
  ## dev
10
- 查看git大文件
16
+ ### 查看git大文件
11
17
  ```shell
12
18
  git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | Where-Object { $_ -match '^blob' } | ForEach-Object { $parts = $_ -split ' ', 4; [PSCustomObject]@{ Size = [int]$parts[2]; Name = $parts[3] } } | Sort-Object Size -Descending | Select-Object -First 20
13
19
  ```
14
20
 
15
- 发布到npm workflow
21
+ ### 发布到gitworkflow
22
+ #### 开发环境:
16
23
  ```shell
17
24
  cd G:\GGames\Minecraft\shuyeyun\qq-bot\koishi-dev\koishi-dev-3\external\onebot-info-image
18
25
  git add .
19
26
  git commit -m "message"
20
27
  git push origin main
28
+ ```
29
+ #### 生产环境:
30
+ ```shell
31
+ cd /home/bawuyinguo/SSoftwareFiles/koishi/awa-bot-3/external
32
+ git clone https://gitee.com/vincent-zyu/koishi-plugin-onebot-image
33
+ cd /home/bawuyinguo/SSoftwareFiles/koishi/awa-bot-3/external/koishi-plugin-onebot-image
34
+ git pull
35
+ cd /home/bawuyinguo/SSoftwareFiles/koishi/awa-bot-3
36
+ yarn && yarn build
37
+ yarn
38
+ ```
39
+
21
40
 
22
- # ensure plugin dir name is onebot-info-image, then:
41
+ ```shell
42
+ # ensure plugin dir name is *onebot-info-image*, without koishi-plugin prefix then:
23
43
  cd G:\GGames\Minecraft\shuyeyun\qq-bot\koishi-dev\koishi-dev-3
24
44
  yarn
45
+ yarn dev
25
46
  yarn build onebot-info-image
26
47
 
27
48
  $Env:HTTP_PROXY = "http://127.0.0.1:7890"
@@ -30,4 +51,8 @@ Invoke-WebRequest -Uri "https://www.google.com" -Method Head -UseBasicParsing
30
51
  npm login --registry https://registry.npmjs.org
31
52
  # login npm in browser
32
53
  npm run pub onebot-info-image -- --registry https://registry.npmjs.org
54
+ npm dist-tag add koishi-plugin-onebot-info-image@0.2.0-alpha.6+20250929 latest --registry https://registry.npmjs.org
55
+
56
+ npm view koishi-plugin-onebot-info-image
57
+ npm-stat.com
33
58
  ```