Skip to content

Instantly share code, notes, and snippets.

@bustapaladin
Forked from ruzli/instant_bet.js
Created May 26, 2019 13:30
Show Gist options
  • Save bustapaladin/27b72772f3687e1f5f1f320b2dd23887 to your computer and use it in GitHub Desktop.
Save bustapaladin/27b72772f3687e1f5f1f320b2dd23887 to your computer and use it in GitHub Desktop.
Instant betting(takes up to 10 seconds to finish place amount of bets you set with flat bets) [Balance: Any]
//******* INSTANT BETTING *******//
var config = {
baseBet: { label: "Bet", type: "balance", value: 100 },
target: { label: "Target", type: "multiplier", value: 100 },
betCount: { label: "Bet count", type: "number", value: 100 },
resetStatistics: { label: "Reset statistics on launch?", type: "checkbox", value: true }
}
if (config.resetStatistics.value) this.resetStatistics()
for (let i = 0; i < config.betCount.value; i++) {
this.bet( config.baseBet.value, config.target.value).catch(this.stop)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment