Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- target: { value: 'lovejapan', type: 'text', label: 'User to follow' },
- betMulti: { value: 0.15, type: 'number', label: 'Bet Adjustment' },
- payMod: { value: 0, type: 'number', label: 'Payout (+/-)' },
- minTarget: { value: 1.9, type: 'multiplier', label: 'Payout Minimum' }
- };
- log('Script is running..');
- engine.on('BET_PLACED', (bet) => {
- if (bet.uname == config.target.value) {
- if (bet.payout < config.minTarget.value){
- log('Ignored bet with low target payout');
- return;
- }
- let paySize = (bet.payout + config.payMod.value);
- let betSize = userInfo.balance;
- if (userInfo.balance < betSize) {
- log('You have a balance is too low, you can not bet');
- return;
- }
- engine.bet(betSize, paySize); // aim at same payout as target..
- log(`Placed bet ${betSize/100} bits @ ${paySize}x`);
- }
- });
- engine.on('CASHED_OUT', (cashOut) => {
- if (cashOut.uname === config.target.value) {
- if (engine.currentlyPlaying()) {
- engine.cashOut();
- log(`Spotted ${cashOut.uname} cashing out at ${cashOut.cashedAt}x`);
- }
- }
- });
- function roundBit(bet){
- return Math.round(bet / 100) * 100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement