koishi-plugin-onebot-info-image 0.2.0-alpha.10 → 0.2.0-alpha.11

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/index.js CHANGED
@@ -1282,9 +1282,10 @@ function apply(ctx, config) {
1282
1282
  if (config.onebotImplName === ONEBOT_IMPL_NAME.LAGRNAGE) {
1283
1283
  } else if (config.onebotImplName === ONEBOT_IMPL_NAME.NAPCAT) {
1284
1284
  const ncUserStatusObj = await session.onebot._request("nc_get_user_status", { user_id: targetUserId });
1285
+ const napcatStatusData = ncUserStatusObj?.data ?? null;
1285
1286
  userInfoArg.status = {
1286
1287
  napcat_origin: ncUserStatusObj,
1287
- message: getNapcatQQStatusText(ncUserStatusObj?.data.status, ncUserStatusObj?.data.ext_status)
1288
+ message: getNapcatQQStatusText(napcatStatusData?.status, napcatStatusData?.ext_status)
1288
1289
  };
1289
1290
  }
1290
1291
  let userInfoArgMsg = `userInfoArg =
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.10+20250929",
4
+ "version": "0.2.0-alpha.11+20251013",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -20,7 +20,7 @@
20
20
  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
21
21
  ```
22
22
 
23
- ### 发布到gitworkflow
23
+ ### 发布到git workflow
24
24
  #### 开发环境:
25
25
  ```shell
26
26
  cd G:\GGames\Minecraft\shuyeyun\qq-bot\koishi-dev\koishi-dev-3\external\onebot-info-image
@@ -39,7 +39,7 @@ yarn && yarn build
39
39
  yarn
40
40
  ```
41
41
 
42
-
42
+ ### 发布到npm workflow
43
43
  ```shell
44
44
  # ensure plugin dir name is *onebot-info-image*, without koishi-plugin prefix then:
45
45
  cd G:\GGames\Minecraft\shuyeyun\qq-bot\koishi-dev\koishi-dev-3
@@ -53,7 +53,7 @@ Invoke-WebRequest -Uri "https://www.google.com" -Method Head -UseBasicParsing
53
53
  npm login --registry https://registry.npmjs.org
54
54
  # login npm in browser
55
55
  npm run pub onebot-info-image -- --registry https://registry.npmjs.org
56
- npm dist-tag add koishi-plugin-onebot-info-image@0.2.0-alpha.10+20250929 latest --registry https://registry.npmjs.org
56
+ npm dist-tag add koishi-plugin-onebot-info-image@0.2.0-alpha.11+20251013 latest --registry https://registry.npmjs.org
57
57
 
58
58
  npm view koishi-plugin-onebot-info-image
59
59
  npm-stat.com