mioki 0.7.1 → 0.7.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 +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{package-DtVmw4Ds.cjs → package-BgBs6o_K.cjs} +2 -2
- package/dist/package-BgBs6o_K.cjs.map +1 -0
- package/dist/package-z_NEfbNK.mjs +6 -0
- package/dist/package-z_NEfbNK.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/package-C-2yoqkl.mjs +0 -6
- package/dist/package-C-2yoqkl.mjs.map +0 -1
- package/dist/package-DtVmw4Ds.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-BgBs6o_K.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");
|
|
@@ -944,9 +944,7 @@ async function noticeFriends(bot, friendIdList, message, delay = 1e3) {
|
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
for (const friendId of friendIdList) {
|
|
947
|
-
|
|
948
|
-
if (!friend) continue;
|
|
949
|
-
await friend.sendMsg(message);
|
|
947
|
+
await bot.sendPrivateMsg(friendId, message);
|
|
950
948
|
await wait(delay);
|
|
951
949
|
}
|
|
952
950
|
}
|
|
@@ -976,7 +974,7 @@ async function noticeMainOwner(bot, message) {
|
|
|
976
974
|
}
|
|
977
975
|
const mainOwner = botConfig.owners[0];
|
|
978
976
|
if (mainOwner) {
|
|
979
|
-
await
|
|
977
|
+
await bot.sendPrivateMsg(mainOwner, message);
|
|
980
978
|
return;
|
|
981
979
|
}
|
|
982
980
|
throw new Error("请至少设置一个主人");
|