mioki 0.16.1 → 0.16.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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{package-Bryo1nSK.cjs → package-CYh8zbTm.cjs} +2 -2
- package/dist/package-CYh8zbTm.cjs.map +1 -0
- package/dist/package-CwoAh-rX.mjs +6 -0
- package/dist/package-CwoAh-rX.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/package-Bryo1nSK.cjs.map +0 -1
- package/dist/package-Bvcr71Zp.mjs +0 -6
- package/dist/package-Bvcr71Zp.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BiucMVzj.mjs";
|
|
2
|
-
import { t as version } from "./package-
|
|
2
|
+
import { t as version } from "./package-CwoAh-rX.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";
|
|
@@ -1408,11 +1408,10 @@ async function enablePlugin(bots, plugin, type = "external") {
|
|
|
1408
1408
|
if (isPrivateMessageEvent(e)) {
|
|
1409
1409
|
if (e.self_id !== bot$1.bot_id) return;
|
|
1410
1410
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
if (isFromConnectedBot || isFromConnectedBotOperator) return;
|
|
1411
|
+
if (isMessageEvent(e)) {
|
|
1412
|
+
const senderUserId = e.user_id;
|
|
1413
|
+
if (senderUserId && bots.some((b) => b.bot_id === senderUserId)) return;
|
|
1414
|
+
}
|
|
1416
1415
|
if (deduplicate && isDeduplicableEvent(e)) {
|
|
1417
1416
|
if (deduplicator.isProcessed(e, dedupeScope)) return;
|
|
1418
1417
|
deduplicator.markProcessed(e, dedupeScope);
|