koishi-plugin-noah 1.0.3 → 1.0.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.
@@ -22,6 +22,10 @@ export declare class CardService {
22
22
  * 根据 code 获取卡片信息
23
23
  */
24
24
  getCardByCode(code: string): Promise<Card | null>;
25
+ /**
26
+ * 根据 name 获取卡片信息
27
+ */
28
+ getCardByName(name: string): Promise<Card | null>;
25
29
  /**
26
30
  * 创建一张新的卡
27
31
  * @param uid 用户的 uid
@@ -19,6 +19,6 @@ export declare function classifyCardId(input: string): "uid" | "konamiid" | "inv
19
19
  /**
20
20
  * 处理用户输入的卡号。
21
21
  * @param input 用户输入的卡号
22
- * @returns 修正后的全大写字符串
22
+ * @returns 删去空格的全大写字符串
23
23
  */
24
24
  export declare function processInputCardCode(input: string): string;
@@ -5,6 +5,19 @@ import { SDVXConfig } from '../../types/config';
5
5
  export declare class SDVXDrawer extends BaseDrawer {
6
6
  ctx: Context;
7
7
  constructor(ctx: Context);
8
+ /**
9
+ * Generate a Recent image for SDVX scores
10
+ * @param options Configuration options for image generation
11
+ * @param compression Compression options
12
+ * @returns Promise resolving to a Buffer containing the image data
13
+ */
14
+ generateRecentImage(options: {
15
+ score: SDVXScore;
16
+ playerName: string;
17
+ config: SDVXConfig;
18
+ }, compression?: {
19
+ lossless: boolean;
20
+ }): Promise<Buffer>;
8
21
  /**
9
22
  * Generate a Volforce image for SDVX scores
10
23
  * @param options Configuration options for image generation
@@ -0,0 +1,3 @@
1
+ import { Context } from 'koishi';
2
+ import { SDVXConfig } from '../../../types/config';
3
+ export declare function recent(ctx: Context, config: SDVXConfig): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-noah",
3
- "version": "1.0.3",
3
+ "version": "1.0.11",
4
4
  "contributors": [
5
5
  "Logthm <logthm@outlook.com>"
6
6
  ],
@@ -42,6 +42,9 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@ltxhhz/koishi-plugin-skia-canvas": "^0.0.8",
45
- "@types/xml2js": "^0"
45
+ "@types/xml2js": "^0",
46
+ "koishi": "^4.18.7",
47
+ "typescript": "^5.9.0-dev.20250412",
48
+ "yml-register": "^1.2.5"
46
49
  }
47
50
  }
package/readme.md CHANGED
@@ -1,5 +1,3 @@
1
1
  # koishi-plugin-noah
2
2
 
3
- [![npm](https://img.shields.io/npm/v/koishi-plugin-noah?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-noah)
4
-
5
- undefined
3
+ Tool bot for arcade music games.
File without changes
File without changes