koishi-plugin-node-async-bot-all 3.0.0 → 3.0.1

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/fun.d.ts CHANGED
@@ -50,7 +50,10 @@ export declare function readInfo(ctx: Context): Promise<{
50
50
  nodeVersion: string;
51
51
  } | string>;
52
52
  export declare function formatTimestampDiff(start: number, end: number): string;
53
- export declare function getMsgCount(ctx: Context): Promise<object>;
53
+ export declare function getMsgCount(ctx: Context): Promise<{
54
+ receive: number;
55
+ send: number;
56
+ }>;
54
57
  export declare function random(type: number | undefined, data: number | number[], data2?: number): number;
55
58
  export declare function request<T = any, E = any>(url: string, ctx: Context, options?: HTTP.RequestConfig, logger?: Logger): Promise<HttpResponse<T, E>>;
56
59
  export declare function queryA2S(host: string, log: Logger): Promise<serverInfo>;
package/lib/index.js CHANGED
@@ -494,7 +494,7 @@ var CommandHandler = class {
494
494
  Number((await ctx.database.get("botData", "uptime"))[0].data),
495
495
  Number(session.event.timestamp.toString().substring(0, 10))
496
496
  ),
497
- msgCount: `${msgCount["receive"]}/${msgCount["send"]}`,
497
+ msgCount: `${msgCount.receive}/${msgCount.send}`,
498
498
  version: (await ctx.database.get("botData", "version"))[0].data,
499
499
  success: 0
500
500
  };
@@ -820,7 +820,7 @@ var CommandHandler = class {
820
820
  };
821
821
 
822
822
  // package.json
823
- var version = "3.0.0";
823
+ var version = "3.0.1";
824
824
 
825
825
  // src/config.ts
826
826
  var import_koishi3 = require("koishi");
@@ -1011,8 +1011,6 @@ ${import_koishi4.h.image(outMsg.data, "image/png")}`);
1011
1011
  `${outMsg.msg}
1012
1012
  ${import_koishi4.h.image(outMsg.data, "image/png")}`
1013
1013
  );
1014
- } else {
1015
- await this.ctx.broadcast(this.ctx.config.steamNews, outMsg.msg);
1016
1014
  }
1017
1015
  }
1018
1016
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-node-async-bot-all",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "NodeAsync Bot插件(自用)",
5
5
  "keywords": [
6
6
  "chatbot",