Jump to content

script


Lamani
 Share

Recommended Posts

  var config = {
    bet: { label: 'bet', value: currency.minAmount * 1.2, type: 'number' },
    payout: { label: 'payout', value: 2, type: 'number' }
  }
  
  function main () {
    game.onBet = function () {
      game.bet(config.bet.value, config.payout.value).then(function(payout) {
        if (payout > 1) {
          log.success("We won, payout " + payout + "X!");
        } else {
          log.error("We lost, payout " + payout + "X!");
        }
      });
    }
  }
  

Link to comment
Share on other sites

  • 1 month later...

You need to be a member in order to leave a comment

Sign up for a new account in our community. It's easy!

Register a new account

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...