@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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 轨迹答题配置
|
|
3
|
+
*/
|
|
4
|
+
import { Schema } from "koishi";
|
|
5
|
+
export interface CafeBotQuizConfig {
|
|
6
|
+
baseQuizUrl: string;
|
|
7
|
+
maxQuizPerDay: number;
|
|
8
|
+
redisServer: string;
|
|
9
|
+
redisAuth: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CafeBotQuizConfig: Schema<CafeBotQuizConfig>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 轨迹答题
|
|
3
|
+
*/
|
|
4
|
+
import { Context, Schema } from 'koishi';
|
|
5
|
+
import { CafeBotQuizConfig } from './config';
|
|
6
|
+
export declare const name = "cafe-bot-exp.quiz";
|
|
7
|
+
export declare const inject: string[];
|
|
8
|
+
export interface Config extends CafeBotQuizConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const Config: Schema<Config>;
|
|
11
|
+
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azimiao/koishi-plugin-cafe-bot-exp",
|
|
3
3
|
"description": "cafe bot experiment",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Azimiao/koishi-plugin-cafe-bot-exp.git"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "WildRabbit",
|
|
13
|
+
"email": "admin@azimao.com",
|
|
14
|
+
"url": "https://www.azimiao.com"
|
|
15
|
+
},
|
|
7
16
|
"files": [
|
|
8
17
|
"lib",
|
|
9
18
|
"dist"
|
|
@@ -19,7 +28,7 @@
|
|
|
19
28
|
},
|
|
20
29
|
"koishi": {
|
|
21
30
|
"description": {
|
|
22
|
-
"zh": "轨迹
|
|
31
|
+
"zh": "轨迹CafeBot概念版"
|
|
23
32
|
},
|
|
24
33
|
"service": {
|
|
25
34
|
"required": [
|
|
@@ -30,5 +39,9 @@
|
|
|
30
39
|
"zh"
|
|
31
40
|
],
|
|
32
41
|
"preview": true
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@stdlib/random-base-uniform": "^0.2.1",
|
|
45
|
+
"fs.promises.exists": "^1.1.4"
|
|
33
46
|
}
|
|
34
47
|
}
|
package/readme.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# koishi-plugin-cafe-bot-exp
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/koishi-plugin-cafe-bot-exp)
|
|
3
|
+
[](https://www.npmjs.com/package/@azimiao/koishi-plugin-cafe-bot-exp)
|
|
4
4
|
|
|
5
5
|
cafe bot experiment
|