koishi-plugin-onebot-info-image 0.3.1-beta.1 → 0.4.0-beta.3
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/commandAdminList.d.ts +3 -0
- package/lib/commandGroupEssence.d.ts +38 -0
- package/lib/commandGroupEssenceDetail.d.ts +12 -0
- package/lib/commandGroupNotice.d.ts +45 -0
- package/lib/commandGroupNoticeDetail.d.ts +12 -0
- package/lib/commandInspectStyle.d.ts +3 -0
- package/lib/commandUserInfo.d.ts +3 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +3525 -605
- package/lib/renderGroupEssence.d.ts +15 -0
- package/lib/renderGroupEssenceDetail.d.ts +8 -0
- package/lib/renderGroupNotice.d.ts +7 -0
- package/lib/renderGroupNoticeDetail.d.ts +8 -0
- package/package.json +3 -3
- package/readme.md +4 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Context } from 'koishi';
|
|
2
|
+
import { type ImageStyle, ImageType } from './type';
|
|
3
|
+
import { PaginatedEssenceResult } from './commandGroupEssence';
|
|
4
|
+
interface EssenceContextInfo {
|
|
5
|
+
groupId: number;
|
|
6
|
+
groupName: string;
|
|
7
|
+
memberCount: number;
|
|
8
|
+
maxMemberCount: number;
|
|
9
|
+
groupAvatarUrl: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 渲染群精华消息列表为图片
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderGroupEssence(ctx: Context, result: PaginatedEssenceResult, contextInfo: EssenceContextInfo, imageStyle: ImageStyle, enableDarkMode: boolean, imageType: ImageType, screenshotQuality: number): Promise<string>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Context } from 'koishi';
|
|
2
|
+
import { type ImageStyle, ImageType } from './type';
|
|
3
|
+
import { GroupEssenceMessageRaw } from './commandGroupEssence';
|
|
4
|
+
import { EssenceDetailContextInfo } from './commandGroupEssenceDetail';
|
|
5
|
+
/**
|
|
6
|
+
* 渲染群精华消息详情为图片
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderGroupEssenceDetail(ctx: Context, record: GroupEssenceMessageRaw, contextInfo: EssenceDetailContextInfo, imageStyle: ImageStyle, enableDarkMode: boolean, imageType: ImageType, screenshotQuality: number): Promise<string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context } from 'koishi';
|
|
2
|
+
import { type ImageStyle, ImageType } from './type';
|
|
3
|
+
import { PaginatedNoticeResult, NoticeContextInfo } from './commandGroupNotice';
|
|
4
|
+
/**
|
|
5
|
+
* 渲染群公告列表图片
|
|
6
|
+
*/
|
|
7
|
+
export declare function renderGroupNotice(ctx: Context, result: PaginatedNoticeResult, contextInfo: NoticeContextInfo, imageStyle: ImageStyle, enableDarkMode: boolean, imageType: ImageType, screenshotQuality: number): Promise<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Context } from 'koishi';
|
|
2
|
+
import { type ImageStyle, ImageType } from './type';
|
|
3
|
+
import { GroupNoticeMessageRaw } from './commandGroupNotice';
|
|
4
|
+
import { NoticeDetailContextInfo } from './commandGroupNoticeDetail';
|
|
5
|
+
/**
|
|
6
|
+
* 渲染群公告详情图片
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderGroupNoticeDetail(ctx: Context, record: GroupNoticeMessageRaw, contextInfo: NoticeDetailContextInfo, imageStyle: ImageStyle, enableDarkMode: boolean, imageType: ImageType, screenshotQuality: number): Promise<string>;
|
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.
|
|
4
|
+
"version": "0.4.0-beta.3+20251230",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"onebot"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"@koishijs/plugin-console": "^5.30.0",
|
|
26
|
+
"koishi": "^4.18.7"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@koishijs/client": "^5.30.10"
|
package/readme.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# koishi-plugin-onebot-info-image
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/koishi-plugin-onebot-info-image)
|
|
4
|
+
[](https://www.npmjs.com/package/koishi-plugin-onebot-info-image)
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
获取成员信息/管理员列表,发送文字/图片/合并转发消息,仅支持onebot
|
|
6
8
|
|
|
7
|
-
推荐使用Napcat
|
|
9
|
+
推荐使用Napcat
|
|
8
10
|
|
|
9
11
|
### 更新日志
|
|
10
12
|
- **0.3.1-beta.1+20251219**
|
|
@@ -69,7 +71,7 @@ Invoke-WebRequest -Uri "https://www.google.com" -Method Head -UseBasicParsing
|
|
|
69
71
|
npm login --registry https://registry.npmjs.org
|
|
70
72
|
# login npm in browser
|
|
71
73
|
npm run pub onebot-info-image -- --registry https://registry.npmjs.org
|
|
72
|
-
npm dist-tag add koishi-plugin-onebot-info-image@0.
|
|
74
|
+
npm dist-tag add koishi-plugin-onebot-info-image@0.4.0-beta.3+20251230 latest --registry https://registry.npmjs.org
|
|
73
75
|
|
|
74
76
|
npm view koishi-plugin-onebot-info-image
|
|
75
77
|
npm-stat.com
|