@azimiao/koishi-plugin-cafe-bot-exp 0.0.2 → 0.0.3

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 +5 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1685,7 +1685,11 @@ function DailySeededName(uid) {
1685
1685
  const utc = now.getTime() + now.getTimezoneOffset() * 6e4;
1686
1686
  const beijing = new Date(utc + 8 * 60 * 6e4);
1687
1687
  const dateStr = beijing.toISOString().slice(0, 10);
1688
- const fullStr = `${uid}_${dateStr}`;
1688
+ const year = beijing.getFullYear();
1689
+ const month = beijing.getMonth() + 1;
1690
+ const day = beijing.getDate();
1691
+ const pad = /* @__PURE__ */ __name((n) => n.toString().padStart(2, "0"), "pad");
1692
+ const fullStr = `${uid}_${year}-${pad(month)}-${pad(day)}`;
1689
1693
  return fullStr;
1690
1694
  }
1691
1695
  __name(DailySeededName, "DailySeededName");
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.2",
4
+ "version": "0.0.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [