koishi-plugin-noah 2.4.2 → 2.4.4
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/core/command.d.ts +1 -4
- package/lib/core/commands/bind.d.ts +1 -4
- package/lib/core/commands/card.d.ts +1 -4
- package/lib/core/commands/server.d.ts +1 -3
- package/lib/core/database.d.ts +1 -1
- package/lib/core/types/index.d.ts +15 -1
- package/lib/core/utils/server.d.ts +0 -7
- package/lib/fun/poke/index.d.ts +1 -2
- package/lib/fun/poke/types.d.ts +0 -5
- package/lib/games/sdvx/utils/param-parser.d.ts +3 -5
- package/lib/index.cjs +501 -1290
- package/lib/servers/Asphyxia/services/sdvx-service.d.ts +26 -0
- package/lib/servers/Mao/services/sdvx-service.d.ts +44 -0
- package/lib/servers/Official/services/sdvx-service.d.ts +25 -0
- package/lib/servers/utils/difficulty.d.ts +23 -0
- package/lib/servers/utils/grade.d.ts +8 -0
- package/lib/servers/utils/xml.d.ts +13 -0
- package/lib/types/config.d.ts +2 -8
- package/package.json +4 -4
- package/lib/core/api/auth.d.ts +0 -18
- package/lib/core/api/index.d.ts +0 -3
- package/lib/core/commands/settings.d.ts +0 -3
- package/lib/core/utils/selector.d.ts +0 -13
- package/lib/fun/poke/commands/poke.d.ts +0 -6
- package/lib/fun/poke/commands/stamp.d.ts +0 -6
- package/lib/fun/poke/constants.d.ts +0 -10
- package/lib/fun/poke/events/notice.d.ts +0 -9
- package/lib/fun/poke/utils/file.d.ts +0 -18
- package/lib/fun/poke/utils/random.d.ts +0 -14
- package/lib/fun/poke/utils/stamp.d.ts +0 -14
- package/lib/fun/poke/utils/tip.d.ts +0 -10
package/lib/core/command.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { CoreConfig } from '../types/config';
|
|
3
|
-
import { ApiContext } from './api/auth';
|
|
4
3
|
export declare const name = "command";
|
|
5
|
-
export declare function apply(ctx: Context, config: CoreConfig
|
|
6
|
-
_apiCtx?: ApiContext;
|
|
7
|
-
}): void;
|
|
4
|
+
export declare function apply(ctx: Context, config: CoreConfig): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { CoreConfig } from '../../types/config';
|
|
3
|
-
|
|
4
|
-
import { ServerService } from '../services/server-service';
|
|
5
|
-
import { UserService } from '../services/user-service';
|
|
6
|
-
export declare function bind(ctx: Context, config: CoreConfig, cardService: CardService, serverService: ServerService, userService: UserService): void;
|
|
3
|
+
export declare function bind(ctx: Context, config: CoreConfig): void;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { CoreConfig } from '../../types/config';
|
|
3
|
-
|
|
4
|
-
import { ServerService } from '../services/server-service';
|
|
5
|
-
import { UserService } from '../services/user-service';
|
|
6
|
-
export declare function card(ctx: Context, config: CoreConfig, cardService: CardService, serverService: ServerService, userService: UserService): void;
|
|
3
|
+
export declare function card(ctx: Context, config: CoreConfig): void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { CoreConfig } from '../../types/config';
|
|
3
|
-
|
|
4
|
-
import { UserService } from '../services/user-service';
|
|
5
|
-
export declare function server(ctx: Context, config: CoreConfig, serverService: ServerService, userService: UserService): void;
|
|
3
|
+
export declare function server(ctx: Context, config: CoreConfig): void;
|
package/lib/core/database.d.ts
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { TServer, TGame } from '../../types';
|
|
2
|
+
export interface Card {
|
|
3
|
+
id: number;
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
defaultServerId: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Server {
|
|
9
|
+
id: number;
|
|
10
|
+
type: TServer;
|
|
11
|
+
name: string;
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
pcbid?: string;
|
|
14
|
+
supportedGames: TGame[];
|
|
15
|
+
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
|
-
import { CardService } from '../services/card-service';
|
|
3
2
|
import { ServerService } from '../services/server-service';
|
|
4
3
|
import { UserService } from '../services/user-service';
|
|
5
|
-
import { Card, Server } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Resolve the server for a given card, with fallback to channel/user defaults.
|
|
8
|
-
* If the card references a deleted server, cleans up the stale reference automatically.
|
|
9
|
-
*/
|
|
10
|
-
export declare function resolveServerForCard(card: Card, cardService: CardService, serverService: ServerService, uid: number, platform: string, channelId: string | null): Promise<Server | null>;
|
|
11
4
|
/**
|
|
12
5
|
* Ensure the user has an Official (KONAMI) server and return its id.
|
|
13
6
|
* Creates one with the configured support URL when missing.
|
package/lib/fun/poke/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from 'koishi';
|
|
2
2
|
import { AppConfig } from '../../types/config';
|
|
3
3
|
export declare const name = "Noah-Poke";
|
|
4
|
-
export declare const logger: Logger;
|
|
5
4
|
export declare function apply(ctx: Context, config: AppConfig): void;
|
package/lib/fun/poke/types.d.ts
CHANGED
|
@@ -6,12 +6,7 @@ declare module 'koishi' {
|
|
|
6
6
|
targetId: string;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export type MessageReplyType = 'text' | 'noah' | 'chat';
|
|
10
9
|
export interface MessageReply {
|
|
11
|
-
type: MessageReplyType;
|
|
12
|
-
weight: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PromptReply {
|
|
15
10
|
content: string;
|
|
16
11
|
weight: number;
|
|
17
12
|
}
|
|
@@ -8,11 +8,6 @@ export interface QueryParams {
|
|
|
8
8
|
grade?: SDVXGrade | SDVXGrade[];
|
|
9
9
|
clearType?: SDVXClearType | SDVXClearType[];
|
|
10
10
|
vf?: number | number[];
|
|
11
|
-
excludeLevel?: number[];
|
|
12
|
-
excludeScore?: number[];
|
|
13
|
-
excludeGrade?: SDVXGrade[];
|
|
14
|
-
excludeClearType?: SDVXClearType[];
|
|
15
|
-
excludeVf?: number[];
|
|
16
11
|
}
|
|
17
12
|
/**
|
|
18
13
|
* 解析带后缀的数字
|
|
@@ -54,4 +49,7 @@ export declare function parseSingleGrade(item: string): SDVXGrade[] | null;
|
|
|
54
49
|
* 解析雷达特征
|
|
55
50
|
*/
|
|
56
51
|
export declare function parseRadarFeature(item: string): string | null;
|
|
52
|
+
/**
|
|
53
|
+
* 解析用户输入参数
|
|
54
|
+
*/
|
|
57
55
|
export declare function parseQueryInput(input: string): QueryParams;
|