Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- target: { value: '', type: 'text', label: 'User to follow' },
- perBet: { value: 0.005, type: 'multiplier', label: 'Percentage of Users Bet' }
- };
- log('Script is running..');
- engine.on('BET_PLACED', bet => {
- if (bet.uname.toLowerCase() === config.target.value.toLowerCase()) {
- var wager = roundBit(bet.wager * config.perBet.value);
- engine.bet(wager, Number.MAX_VALUE); // aim at max profit...
- }
- });
- engine.on('CASHED_OUT', cashOut => {
- if (cashOut.uname.toLowerCase() === config.target.value.toLowerCase()) {
- log('Spotted ', cashOut.uname, ' cashing out at ', cashOut.cashedAt);
- if (engine.currentlyPlaying()) {
- engine.cashOut();
- }
- }
- })
- function roundBit(bet) {
- return Math.round(bet / 100) * 100;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement