@azimiao/koishi-plugin-cafe-bot-exp 0.0.18 → 0.0.20

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 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: string[];
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.18";
41
+ var version = "0.0.20";
42
42
 
43
43
  // src/draw/index.ts
44
44
  var draw_exports = {};
@@ -698,6 +698,7 @@ async function apply3(ctx, config) {
698
698
  wrong: "integer"
699
699
  }, { primary: "id", autoInc: true });
700
700
  await downloadQuitDataIfNotExist(ctx, config, config.forceUpdateWhenLoad);
701
+ ctx.command("轨迹答题").usage("通过趣味答题看看你是不是合格的桂皮吧~");
701
702
  ctx.command("轨迹答题/出题", "随机抽一道题目").action(async (argv, _) => {
702
703
  await downloadQuitDataIfNotExist(ctx, config, false);
703
704
  var lastQuestion = await ctx.cache.get("question", argv.session.userId);
@@ -743,7 +744,6 @@ D. ${qOptions[3].s}`;
743
744
  await argv.session?.send(messageQuestion);
744
745
  return;
745
746
  });
746
- ctx.command("轨迹答题").usage("通过趣味答题看看你是不是合格的桂皮吧~");
747
747
  ctx.command("轨迹答题/回答 <answer:text>", `使用"回答+空格+选项"回答问题,另外你也可以直接@我说出选项(ABCD)哦`).action(async (argv, answer) => {
748
748
  await answerHandler(ctx, config, argv, answer);
749
749
  return;
@@ -807,17 +807,22 @@ var Config4 = import_koishi7.Schema.intersect([
807
807
 
808
808
  // src/index.ts
809
809
  var name4 = "cafe-bot-exp";
810
- var inject3 = ["http", "cache", "logger", "database"];
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
- `我是运行在超级计算机『卡佩尔』上的轨迹CafeBot概念版v${version}🎉~
818
- - 我提供轨迹抽卡🎴和轨迹问答🙋‍功能
819
- - 另外我还有一些隐藏功能待你探索哦🎁
820
- 多多与我聊天吧~`
820
+ `<img src="https://www.azimiao.com/wp-content/uploads/2025/05/cafe-wide.jpg"/>
821
+ ${At(argv)}Hi~我是轨迹CafeBot概念版v${version}🎉~
822
+ 我运行在🖥️超级计算机『卡佩尔』上🛜
823
+ 🔹 我提供轨迹抽卡🎴和轨迹问答🙋‍功能
824
+ 🔹 另外我还有一些隐藏功能待你探索哦🎁
825
+ 我还在成长中,多多与我聊天吧~`
821
826
  );
822
827
  });
823
828
  }
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.18",
4
+ "version": "0.0.20",
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": [