We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349b79b commit 680a7a6Copy full SHA for 680a7a6
TbsCore/Tasks/LowLevel/SellOnAuctions.cs
@@ -11,7 +11,10 @@ namespace TbsCore.Tasks.LowLevel
11
{
12
public class SellOnAuctions : BotTask
13
14
+ private readonly Random rand = new Random();
15
+
16
public override async Task<TaskRes> Execute(Account acc)
17
18
19
if (acc.AccInfo.ServerVersion == ServerVersionEnum.TTwars) return TaskRes.Executed;
20
if (!acc.Wb.CurrentUrl.Contains("auction?action=sell"))
@@ -87,7 +90,7 @@ public override async Task<TaskRes> Execute(Account acc)
87
90
var element = acc.Wb.Driver.FindElement(By.XPath(nodeItemXPath.XPath));
88
91
if (element == null) continue;
89
92
element.Click();
- await Task.Delay(600);
93
+ await Task.Delay(rand.Next(1500, 2500));
94
95
int counter = 3;
96
do
0 commit comments