The bot doesn't work as expected. Made me lose about 60k+ rdd. Shit.

I do not know what your balance was, but the resetToBase(); with your code would only execute..
On a win AND if your balance was < 120000, other wise on win it will bet the same amount as the last loss and keep increasing on loss.
If you can tell me what you were trying to do, I can show you the code to do it.
The bot will only do what it is "told" to do, even if what you tell it to do is wrong.
When testing something new... always start with small bets and watch it... I've messed things up and lost millions of rdd.
Increasing multiplier instead of bet when tired.. lol
madroller