@azimiao/koishi-plugin-cafe-bot-exp 0.0.18 → 0.0.19
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/index.d.ts +4 -1
- package/lib/index.js +10 -6
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -5,5 +5,8 @@ import { Context } from 'koishi';
|
|
|
5
5
|
import { Config } from './config';
|
|
6
6
|
export declare const name = "cafe-bot-exp";
|
|
7
7
|
export * from "./config";
|
|
8
|
-
export declare const inject:
|
|
8
|
+
export declare const inject: {
|
|
9
|
+
required: string[];
|
|
10
|
+
optional: string[];
|
|
11
|
+
};
|
|
9
12
|
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
package/lib/index.js
CHANGED
|
@@ -38,7 +38,7 @@ __export(src_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(src_exports);
|
|
39
39
|
|
|
40
40
|
// package.json
|
|
41
|
-
var version = "0.0.
|
|
41
|
+
var version = "0.0.19";
|
|
42
42
|
|
|
43
43
|
// src/draw/index.ts
|
|
44
44
|
var draw_exports = {};
|
|
@@ -807,17 +807,21 @@ var Config4 = import_koishi7.Schema.intersect([
|
|
|
807
807
|
|
|
808
808
|
// src/index.ts
|
|
809
809
|
var name4 = "cafe-bot-exp";
|
|
810
|
-
var inject3 =
|
|
810
|
+
var inject3 = {
|
|
811
|
+
required: ["http", "cache", "database"],
|
|
812
|
+
optional: ["logger"]
|
|
813
|
+
};
|
|
811
814
|
async function apply4(ctx, config) {
|
|
812
815
|
ctx.plugin(draw_exports, config);
|
|
813
816
|
ctx.plugin(quiz_exports, config);
|
|
814
817
|
ctx.plugin(cat_exports, config);
|
|
815
818
|
ctx.command("关于", "about").action(async (argv, _) => {
|
|
816
819
|
argv.session?.send(
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
820
|
+
`<img src="https://www.azimiao.com/wp-content/uploads/2025/05/cafe-wide.jpg"/>
|
|
821
|
+
${At(argv)}我是运行在超级计算机『卡佩尔』上的轨迹CafeBot概念版v${version}🎉~
|
|
822
|
+
🔹 我提供轨迹抽卡🎴和轨迹问答🙋功能
|
|
823
|
+
🔹 另外我还有一些隐藏功能待你探索哦🎁
|
|
824
|
+
我还在成长中,多多与我聊天吧~`
|
|
821
825
|
);
|
|
822
826
|
});
|
|
823
827
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.19",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"repository": {
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"service": {
|
|
34
34
|
"required": [
|
|
35
35
|
"http",
|
|
36
|
-
"cache"
|
|
36
|
+
"cache",
|
|
37
|
+
"database"
|
|
37
38
|
]
|
|
38
39
|
},
|
|
39
40
|
"locales": [
|