@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.
@@ -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,11 @@
1
+ /**
2
+ * PseudoRandom 伪随机数类
3
+ */
4
+ declare class PseudoRandom {
5
+ private seed;
6
+ private randFunc;
7
+ constructor(seedStr: string);
8
+ next: () => number;
9
+ nextInt: (min: number, max: number) => number;
10
+ }
11
+ export default PseudoRandom;
@@ -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
- export interface CafeBotDrawConfig {
3
- baseDataUrl: string;
4
- ImageServer: string;
5
- ImageServerAuth: string;
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>;
@@ -0,0 +1,2 @@
1
+ declare function HtmlCreator(cardList: any): string;
2
+ export default HtmlCreator;
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>;