mioki 0.12.0 → 0.12.2

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/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as __export } from "./chunk-DYZpOiH0.mjs";
2
- import { t as version } from "./package-COIUmOsl.mjs";
1
+ import { t as __exportAll } from "./chunk-BiucMVzj.mjs";
2
+ import { t as version } from "./package-DhsQExzV.mjs";
3
3
  import fs, { default as fs$1 } from "node:fs";
4
4
  import util from "node:util";
5
5
  import path, { default as path$1 } from "node:path";
@@ -24,7 +24,7 @@ import cp from "node:child_process";
24
24
  import nodeCron from "node-cron";
25
25
 
26
26
  //#region src/utils.ts
27
- var utils_exports = /* @__PURE__ */ __export({
27
+ var utils_exports = /* @__PURE__ */ __exportAll({
28
28
  ChromeUA: () => ChromeUA,
29
29
  START_TIME: () => START_TIME,
30
30
  base64Decode: () => base64Decode,
@@ -771,7 +771,7 @@ function getGTk(pskey) {
771
771
 
772
772
  //#endregion
773
773
  //#region src/config.ts
774
- var config_exports = /* @__PURE__ */ __export({
774
+ var config_exports = /* @__PURE__ */ __exportAll({
775
775
  BOT_CWD: () => BOT_CWD,
776
776
  botConfig: () => botConfig,
777
777
  hasRight: () => hasRight,
@@ -927,7 +927,7 @@ function getMiokiLogger(level) {
927
927
 
928
928
  //#endregion
929
929
  //#region src/actions.ts
930
- var actions_exports = /* @__PURE__ */ __export({
930
+ var actions_exports = /* @__PURE__ */ __exportAll({
931
931
  createForwardMsg: () => createForwardMsg,
932
932
  getViolationRecords: () => getViolationRecords,
933
933
  noticeAdmins: () => noticeAdmins,
@@ -1240,7 +1240,7 @@ async function enablePlugin(bot, plugin, type = "external") {
1240
1240
  const context = {
1241
1241
  bot,
1242
1242
  segment: bot.segment,
1243
- getCookie: bot.getCookie,
1243
+ getCookie: bot.getCookie.bind(bot),
1244
1244
  ...utils_exports,
1245
1245
  ...config_exports,
1246
1246
  ...buildRemovedActions(bot),