Jump to content

script


Lamani

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...