koishi-plugin-booknews 0.0.6 → 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.
Files changed (2) hide show
  1. package/lib/index.js +6 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -43,6 +43,12 @@ function apply(ctx, config) {
43
43
  timestamp: "timestamp"
44
44
  }, { autoInc: true });
45
45
  const sendDailyReport = /* @__PURE__ */ __name(async (isManual = false) => {
46
+ ctx.logger("booknews").error(
47
+ "sendDailyReport called, newsList length =",
48
+ (await ctx.database.get("daily_book_news", {})).length,
49
+ "time =",
50
+ Date.now()
51
+ );
46
52
  const newsList = await ctx.database.get("daily_book_news", {});
47
53
  if (newsList.length === 0) return "今日暂无书讯。";
48
54
  const bot = ctx.bots[0];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-booknews",
3
3
  "description": "It's a plugin for booknews collection",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [