Last active
May 31, 2023 18:50
-
-
Save dsetzer/5a7d864618c7d8878d8a6cbc41279f67 to your computer and use it in GitHub Desktop.
Modified version of the sniper script which uses the same payout as the target player bet rather than just waiting for their cashout (which causes a few ms delay)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
target: { value: '', type: 'text', label: 'User to follow' }, | |
}; | |
log('Script is running..'); | |
engine.on('BET_PLACED', (bet) => { | |
if (bet.uname == config.target.value) { | |
if (userInfo.balance < 100) { | |
log('You have a balance under 1 bit, you can not bet'); | |
return; | |
} | |
engine.bet(bet.wager, bet.payout); // aim at same payout as target.. | |
} | |
}); | |
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); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment