Skip to content

Commit fb5cceb

Browse files
committed
sync
1 parent 5d382a7 commit fb5cceb

3 files changed

Lines changed: 30 additions & 4 deletions

File tree

CONGHUA/chonghua.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ function AutoRead() {
413413
tz += `【本次阅读${$.index}】:账号异常❌\n`;
414414
} else if (typeof readres.data.score === 'number') {
415415
if (logs == 1) $.log(data)
416-
await $.wait(30000);
416+
let randomtime = Randomtime(21000,34000) / 1000
417+
await $.wait(Randomtime(21000,34000));
418+
console.log(`【随机延迟🕑】:${Math.round(randomtime)}秒...`);
417419
$.log(`【本次阅读】:${readres.data.score}个金币🏅`);
418420
readscore += readres.data.score;
419421

TXSTOCK/cowopenbox.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ async function cowfood(bullish){
226226
console.log(`开始喂牛牛🐮....\n`)
227227
while(bullish.bullish_info.bullish_value >= 500){
228228
await cowlevel();
229-
await $.wait(5000);//等待10秒
229+
let randomtime = Randomtime(5000,10000) / 1000
230+
await $.wait(Randomtime(5000,10000));
231+
console.log(`【随机延迟🕑】:${Math.round(randomtime)}秒...`);
230232
bullish.bullish_info.bullish_value = bullish.bullish_info.bullish_value - 500
231233
}
232234
}else{
@@ -320,9 +322,11 @@ async function cowopenbox() {
320322
});
321323
}
322324
async function cowbox() {
323-
for(i=0;i<10;i++){
325+
for(let i=0;i<10;i++){
324326
await cowopenbox();
325-
await $.wait(15000);
327+
let randomtime = Randomtime(10000,60000) / 1000
328+
await $.wait(Randomtime(10000,60000));
329+
console.log(`【随机延迟🕑】:${Math.round(randomtime)}秒...`);
326330
}
327331
}
328332

@@ -336,6 +340,10 @@ function Jsname() {
336340
$.log(` ╰╯ ╰╯╰╯╰┉┉╯ ╰╯ ╰┉┉╯╰┉┉╯╰╯╰╯`)
337341
}
338342

343+
function Randomtime(mintime, maxtime) {
344+
return Math.round(Math.random() * (maxtime - mintime)) + mintime;
345+
}
346+
339347
function time(time) {
340348
var date = new Date(time + 8 * 3600 * 1000);
341349
return date.toJSON().substr(0, 19).replace('T', ' ').replace(/-/g, '.');

test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
async function delaytime(x,y){
2+
var x = mintime
3+
var y = maxtime
4+
function Randomtime(mintime, maxtime) {
5+
return Math.round(Math.random() * (maxtime - mintime)) + mintime;
6+
}
7+
let randomtime = Randomtime(mintime,maxtime) / 1000
8+
await $.wait(Randomtime(mintime,maxtime));
9+
console.log(`【随机延迟🕑】:${randomtime}秒...`);
10+
}
11+
12+
!(async () => {
13+
await delaytime(1000,5000)
14+
})()
15+
.catch((e) => $.logErr(e))
16+
.finally(() => $.done())

0 commit comments

Comments
 (0)