@azimiao/koishi-plugin-cafe-bot-exp 0.0.22 → 0.0.23

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/config.d.ts CHANGED
@@ -5,6 +5,7 @@ import { CafeBotCatConfig } from "./cat/config";
5
5
  export interface CafeBotConfig {
6
6
  logoUrl: string;
7
7
  refreshLogoWhenLoad: boolean;
8
+ useLocalLogoFile: boolean;
8
9
  }
9
10
  export type Config = CafeBotConfig & CafeBotDrawConfig & CafeBotQuizConfig & CafeBotCatConfig;
10
11
  export declare const Config: Schema<Config>;
package/lib/index.js CHANGED
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(src_exports);
39
39
  var import_url = require("url");
40
40
 
41
41
  // package.json
42
- var version = "0.0.22";
42
+ var version = "0.0.23";
43
43
 
44
44
  // src/index.ts
45
45
  var fs4 = __toESM(require("fs/promises"));
@@ -807,7 +807,8 @@ var import_koishi7 = require("koishi");
807
807
  var Config4 = import_koishi7.Schema.intersect([
808
808
  import_koishi7.Schema.object({
809
809
  logoUrl: import_koishi7.Schema.string().description("LOGO图片").default("https://www.azimiao.com/wp-content/uploads/2025/05/cafe-wide.jpg"),
810
- refreshLogoWhenLoad: import_koishi7.Schema.boolean().description("每次加载插件强制刷新logo").default(false)
810
+ refreshLogoWhenLoad: import_koishi7.Schema.boolean().description("每次加载插件强制刷新logo").default(false),
811
+ useLocalLogoFile: import_koishi7.Schema.boolean().description("使用本地存储的logo文件").default(false)
811
812
  }),
812
813
  CafeBotDrawConfig.collapse(),
813
814
  CafeBotQuizConfig.collapse(),
@@ -835,7 +836,7 @@ async function apply4(ctx, config) {
835
836
  logger3?.info(`download file ${result ? "ok" : "failed"}`);
836
837
  ctx.command("关于", "关于本机器人的信息").action(async (argv, _) => {
837
838
  argv.session?.send(
838
- `<img src="${(0, import_url.pathToFileURL)(logoFilePath).href}"/>
839
+ `<img src="${config.useLocalLogoFile ? (0, import_url.pathToFileURL)(logoFilePath).href : config.logoUrl}"/>
839
840
  Hi~我是轨迹CafeBot概念版v${version}🎉~
840
841
  我运行在🖥️超级计算机『卡佩尔』上🛜
841
842
  🔹 我提供轨迹抽卡🎴和轨迹问答🙋‍功能
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.22",
4
+ "version": "0.0.23",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "repository": {