@azimiao/koishi-plugin-cafe-bot-exp 0.0.27-beta6 → 0.0.28

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 +7 -7
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@ module.exports = __toCommonJS(src_exports);
40
40
  var import_url = require("url");
41
41
 
42
42
  // package.json
43
- var version = "0.0.27-beta6";
43
+ var version = "0.0.28";
44
44
 
45
45
  // src/index.ts
46
46
  var import_censor = require("@koishijs/censor");
@@ -100,12 +100,12 @@ var PseudoRandom = class {
100
100
  "seed": this.seed
101
101
  });
102
102
  }
103
- next = /* @__PURE__ */ __name(() => {
103
+ next = () => {
104
104
  return this.randFunc();
105
- }, "next");
106
- nextInt = /* @__PURE__ */ __name((min, max) => {
105
+ };
106
+ nextInt = (min, max) => {
107
107
  return Math.floor(this.next() * (max - min + 1)) + min;
108
- }, "nextInt");
108
+ };
109
109
  };
110
110
  var PseudoRandom_default = PseudoRandom;
111
111
 
@@ -529,7 +529,7 @@ var CafeBotQuizConfig = import_koishi3.Schema.object({
529
529
 
530
530
  // src/common/CafeTimeTools.ts
531
531
  var CafeTimeTools = {
532
- getRemainingSecondsToBeijingMidnight: /* @__PURE__ */ __name(function() {
532
+ getRemainingSecondsToBeijingMidnight: function() {
533
533
  const now = /* @__PURE__ */ new Date();
534
534
  const utcNow = now.getTime();
535
535
  const target = new Date(now);
@@ -540,7 +540,7 @@ var CafeTimeTools = {
540
540
  const diff = target.getTime() - utcNow;
541
541
  const seconds = Math.ceil(diff / 1e3);
542
542
  return seconds;
543
- }, "getRemainingSecondsToBeijingMidnight")
543
+ }
544
544
  };
545
545
  var CafeTimeTools_default = CafeTimeTools;
546
546
 
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.27-beta6",
4
+ "version": "0.0.28",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "repository": {
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@koishijs/censor": "^1.1.0",
51
- "@koishijs/plugin-adapter-qq": "^4.9.2",
51
+ "@koishijs/plugin-adapter-qq": "^4.10.0",
52
52
  "@stdlib/random-base-uniform": "^0.2.1",
53
53
  "fs.promises.exists": "^1.1.4"
54
54
  }