mioki 0.15.1 → 0.16.0
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.mts +12 -3
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{package-DrAKGYns.cjs → package-Cs8cEndC.cjs} +2 -2
- package/dist/package-Cs8cEndC.cjs.map +1 -0
- package/dist/package-UYRX612w.mjs +6 -0
- package/dist/package-UYRX612w.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/package-75_Caljc.mjs +0 -6
- package/dist/package-75_Caljc.mjs.map +0 -1
- package/dist/package-DrAKGYns.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_package = require('./package-
|
|
1
|
+
const require_package = require('./package-Cs8cEndC.cjs');
|
|
2
2
|
let node_fs = require("node:fs");
|
|
3
3
|
node_fs = require_package.__toESM(node_fs);
|
|
4
4
|
let node_util = require("node:util");
|
|
@@ -1391,13 +1391,15 @@ async function enablePlugin(bots, plugin, type = "external") {
|
|
|
1391
1391
|
const createContext = (bot) => {
|
|
1392
1392
|
return {
|
|
1393
1393
|
bot,
|
|
1394
|
-
bots,
|
|
1395
1394
|
self_id: bot.bot_id,
|
|
1395
|
+
bots,
|
|
1396
|
+
pickBot: (id) => bots.find((b) => b.bot_id === id),
|
|
1396
1397
|
segment: bot.segment,
|
|
1397
1398
|
getCookie: bot.getCookie.bind(bot),
|
|
1398
1399
|
...utils_exports,
|
|
1399
1400
|
...config_exports,
|
|
1400
1401
|
...buildRemovedActions(bot),
|
|
1402
|
+
actions: actions_exports,
|
|
1401
1403
|
logger: logger$1,
|
|
1402
1404
|
services,
|
|
1403
1405
|
clears: userClears,
|