I'm trying to write a script for an auto bet (bustabit.com)
they have a manual about this on github
I want to read the "bust" object in the engine.history for writing an if statement
but I have no idea how javascript objects work ( i have not any experience in programming much )
I tried this but it's not working
if (engine.history(game.bust)=1.37){log("bust is 1.37")};
can someone help?
=sign should be an==sign. Yup I know how that feels when u miss on that especially when a program is large..if (engine.history(game.bust)==1.37){log("bust is 1.37")};engine.history.toArray().filter(game => game.bust === 1.37). Just guessing.