Lamani Posted January 26, 2023 Posted January 26, 2023 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!"); } }); } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.