@azimiao/koishi-plugin-cafe-bot-exp 0.0.3 → 0.0.7
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/cat/config.d.ts +9 -0
- package/lib/cat/index.d.ts +10 -0
- package/lib/common/DailySeededName.d.ts +1 -0
- package/lib/common/PseudoRandom.d.ts +11 -0
- package/lib/common/at.d.ts +1 -0
- package/lib/config.d.ts +4 -21
- package/lib/draw/config.d.ts +22 -0
- package/lib/draw/index.d.ts +11 -0
- package/lib/draw/templete/html.d.ts +2 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.js +358 -1851
- package/lib/quiz/config.d.ts +11 -0
- package/lib/quiz/index.d.ts +11 -0
- package/package.json +15 -2
- package/readme.md +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Schema } from "koishi";
|
|
2
|
+
export interface CafeBotCatConfig {
|
|
3
|
+
catName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const CafeBotCatConfig: Schema<Schemastery.ObjectS<{
|
|
6
|
+
catName: Schema<string, string>;
|
|
7
|
+
}>, Schemastery.ObjectT<{
|
|
8
|
+
catName: Schema<string, string>;
|
|
9
|
+
}>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 黑猫柯贝
|
|
3
|
+
*/
|
|
4
|
+
import { Context, Schema } from 'koishi';
|
|
5
|
+
import { CafeBotCatConfig } from './config';
|
|
6
|
+
export declare const name = "cafe-bot-exp.cat";
|
|
7
|
+
export interface Config extends CafeBotCatConfig {
|
|
8
|
+
}
|
|
9
|
+
export declare const Config: Schema<Config>;
|
|
10
|
+
export declare function apply(ctx: Context): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DailySeededName(uid: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function At(argv: any, newLine?: boolean): string;
|
package/lib/config.d.ts
CHANGED
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { Schema } from "koishi";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
MinCount: number;
|
|
7
|
-
MaxCount: number;
|
|
8
|
-
Star1Name: string;
|
|
9
|
-
Star1Chance: number;
|
|
10
|
-
Star2Name: string;
|
|
11
|
-
Star2Chance: number;
|
|
12
|
-
Star3Name: string;
|
|
13
|
-
Star3Chance: number;
|
|
14
|
-
Star4Name: string;
|
|
15
|
-
Star4Chance: number;
|
|
16
|
-
Star5Name: string;
|
|
17
|
-
Star5Chance: number;
|
|
18
|
-
}
|
|
19
|
-
export interface CafeBotQuizConfig {
|
|
20
|
-
baseQuizUrl: string;
|
|
21
|
-
}
|
|
22
|
-
export type Config = CafeBotDrawConfig & CafeBotQuizConfig;
|
|
2
|
+
import { CafeBotDrawConfig } from "./draw/config";
|
|
3
|
+
import { CafeBotQuizConfig } from "./quiz/config";
|
|
4
|
+
import { CafeBotCatConfig } from "./cat/config";
|
|
5
|
+
export type Config = CafeBotDrawConfig & CafeBotQuizConfig & CafeBotCatConfig;
|
|
23
6
|
export declare const Config: Schema<Config>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 轨迹抽卡配置
|
|
3
|
+
*/
|
|
4
|
+
import { Schema } from "koishi";
|
|
5
|
+
export interface CafeBotDrawConfig {
|
|
6
|
+
baseDataUrl: string;
|
|
7
|
+
ImageServer: string;
|
|
8
|
+
ImageServerAuth: string;
|
|
9
|
+
MinCount: number;
|
|
10
|
+
MaxCount: number;
|
|
11
|
+
Star1Name: string;
|
|
12
|
+
Star1Chance: number;
|
|
13
|
+
Star2Name: string;
|
|
14
|
+
Star2Chance: number;
|
|
15
|
+
Star3Name: string;
|
|
16
|
+
Star3Chance: number;
|
|
17
|
+
Star4Name: string;
|
|
18
|
+
Star4Chance: number;
|
|
19
|
+
Star5Name: string;
|
|
20
|
+
Star5Chance: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const CafeBotDrawConfig: Schema<CafeBotDrawConfig>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 轨迹抽卡
|
|
3
|
+
*/
|
|
4
|
+
import { Context, Schema } from 'koishi';
|
|
5
|
+
import { CafeBotDrawConfig } from './config';
|
|
6
|
+
export declare const name = "cafe-bot-exp.draw";
|
|
7
|
+
export declare const inject: string[];
|
|
8
|
+
export interface Config extends CafeBotDrawConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const Config: Schema<Config>;
|
|
11
|
+
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主入口文件
|
|
3
|
+
*/
|
|
1
4
|
import { Context } from 'koishi';
|
|
2
5
|
import { Config } from './config';
|
|
3
6
|
export declare const name = "cafe-bot-exp";
|
|
4
|
-
export declare const inject: string[];
|
|
5
7
|
export * from "./config";
|
|
6
|
-
export declare function apply(ctx: Context, config: Config): void
|
|
8
|
+
export declare function apply(ctx: Context, config: Config): Promise<void>;
|