Sorry if this is a stupid question, I'm new to writing bots. What's the proper way to use the return value of something like
bank.withdraw(x, 1);
is something like this safe or is there some convention?
while (!bank.withdraw(x, 1)) {
sleep(random(100, 500));
}