File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -341,19 +341,22 @@ private async Task<bool> TryFastUpgrade(Account acc)
341
341
}
342
342
343
343
// click to play video
344
- acc . Wb . UpdateHtml ( ) ;
344
+ acc . Logger . Information ( "Waiting ads video load before clicking play button" ) ;
345
+ await Task . Delay ( rand . Next ( 5000 , 9000 ) ) ;
346
+ acc . Logger . Information ( "Clicked play button, if ads doesn't play please click to help bot" ) ;
347
+ acc . Logger . Information ( "Cooldown 3 mins. If building cannot upgrade will use normal button" ) ;
348
+
349
+ {
350
+ var result = await Update ( acc ) ;
351
+ if ( ! result ) return false ;
352
+ }
345
353
var nodeIframe = acc . Wb . Html . GetElementbyId ( "videoFeature" ) ;
346
354
if ( nodeIframe == null )
347
355
{
348
356
await acc . Wb . Refresh ( ) ;
349
357
return false ;
350
358
}
351
359
var elementIframe = acc . Wb . Driver . FindElementById ( "videoFeature" ) ;
352
- if ( elementIframe == null )
353
- {
354
- await acc . Wb . Refresh ( ) ;
355
- return false ;
356
- }
357
360
elementIframe . Click ( ) ;
358
361
359
362
try
@@ -372,6 +375,7 @@ private async Task<bool> TryFastUpgrade(Account acc)
372
375
else
373
376
{
374
377
await acc . Wb . Refresh ( ) ;
378
+ return false ;
375
379
}
376
380
}
377
381
You can’t perform that action at this time.
0 commit comments