Skip to content

Instantly share code, notes, and snippets.

@dsetzer
dsetzer / default-martingale.js
Last active March 31, 2023 12:22
default martingale script from bustabit converted to bustadice.
const config = {
baseBet: { value: 100, type: 'balance', label: 'Base bet' },
payout: { value: 2, type: 'multiplier', label: 'Payout' },
stop: { value: 1e8, type: 'balance', label: 'Stop if bet >' },
loss: { value: 'increase', type: 'radio', label: 'On Loss', options: {
base: { type: 'noop', label: 'Return to base bet' },
increase: { value: 2, type: 'multiplier', label: 'Increase bet by' }
}},
win: { value: 'base', type: 'radio', label: 'On Win', options: {
base: { type: 'noop', label: 'Return to base bet' },

Node Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
@dsetzer
dsetzer / 2_3x1_9m.js
Created February 25, 2019 22:19
bustadice script
/******** SETTINGS ********/
const BET_SPEED = 2000 // time between bets in (ex 500 = 500ms = 0.5s)
const RETRIES = 5 // stops script after retrying this many times.
/**************************/
const baseBet = 100, target = 2.3, betMultiplier = 1.9
const startBal = this.balance
//const maxBet = (startBal > 70000 ? startBal > 5400000 ? 6000 : 700 : 80) * 100
const maxBet = 60 * 100;
let retryCount = 0;
let lossCount = 0
/* ---- SETTINGS ---- */
const baseBet = 100;
const basePayout = 1.5;
const baseMulti = 1.5;
const postBet = 2;
const maxProfit = 100000;
/* ----------------- */
let currBet = baseBet, startBal = this.balance;
let postBal = startBal, prevBal = startBal;
let maxBet = baseBet * Math.pow(baseMulti, 5);
@dsetzer
dsetzer / seed-gen.js
Last active August 18, 2019 04:10
bustadice seed generator
// V1 Original
/*const generateClientSeed = () => {
let text = "";
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let i = 0; i < 16; i++) text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}*/
// V2
const generateClientSeed = (wordNum = 3, wordLen = 12, noNumeric, noRepeat, noReuse, a, b) => {
@dsetzer
dsetzer / 1_3x-8_6m.js
Created February 25, 2019 18:16
bustadice script - designed for use with at least 54,000 bits balance. Below this prevents it from fully recovering losses
/******** SETTINGS ********/
const BET_SPEED = 30 // time between bets in (ex 500 = 500ms = 0.5s)
const RETRIES = 5 // stops script after consecutive attempts.
/**************************/
const baseBet = 100, target = 1.3, betMultiplier = 8.6
const startBal = this.balance
const maxBet = (startBal > 70000 ? startBal > 5400000 ? 6000 : 700 : 80) * 100
let retryCount = 0;
let lossCount = 0
@dsetzer
dsetzer / flat-v1.js
Last active August 18, 2019 04:11
bustadice flat betting script
const baseBet = 100;
const basePayout = 1.2;
const baseMulti = 2;
const postBet = 1;
let currentBet = baseBet;
let startBal = this.balance;
let prevBal = this.balance;
while(true){
prevBal = this.balance;
const { multiplier } = await this.bet(currentBet, basePayout)
@dsetzer
dsetzer / bab-streak-log.js
Last active August 18, 2019 04:11
bustabit streak logger
var config = {
target: { value: 2, type: 'multiplier', label: 'Target Payout' },
streak: { value: 4, type: 'multiplier', label: 'Min Length' }
};
const history = engine.getState().history;
const busts = [], streaks = [];
let currentStart = null, currentStreak = 0;
for (let i = 0; i < history.length; i++) {
let item = [history[i].gameId, null, history[i].bust];
updateStreaks(item);
@dsetzer
dsetzer / climb.js
Last active August 18, 2019 04:11
bustadice - low bal climb
await (async t => {
let a, i, n = (t, a = 2) => ((t + a) / a - a) / a, s = 100, c = n(t), e = n(n(t));
const o = async t => (a = i && i.multiplier < e ? i.value * c : s, i = await this.bet(Math.round(a / s) * s, e));
for (;;) await o().then(t => setTimeout(o, s))
})(28.72);
@dsetzer
dsetzer / VIP-COMBI.js
Last active October 30, 2020 21:38
bustadice script dedicated to ruzli as a joke, but yes it is fully functional and playable (and just as safe as ruzli's =)
let baseBet = 13 * 100; //13 // how many satoshis to bet
let target = 1.6; // target multiplier
let betMultiplier = 3.6; // what to multiply the bet by when we lose a wager
let targetMultiplier = 1;
const MAX_BET = 2500 * 100; // maximum bet amount to stop script at (satoshis)
const MAX_GAMES = -1; // max games before stopping (set to -1 for unlimited)
const BET_SPEED = 30; // time between bets in (ex 500 = 500ms = 0.5s)
const skipGames = async (num, untilMulti, reqMulti) => {