Skip to content

Instantly share code, notes, and snippets.

@dsetzer
Last active May 31, 2023 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsetzer/5a7d864618c7d8878d8a6cbc41279f67 to your computer and use it in GitHub Desktop.
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)
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