Skip to content

Instantly share code, notes, and snippets.

View ruzli's full-sized avatar

Ruzli ruzli

  • Russian Federation, Moscow
View GitHub Profile
const baseBet = 100
const target = 2
const resetTargetAt = 10
const resetTargetTo = 2
const betMultiplier = 0.5
const increaseTargetEvery = 1
const TargetProfit = 2000
const dontLoseThan = 500
@ruzli
ruzli / Simple Martingale with losing streak length stop loss.js
Created March 17, 2021 16:09
Simple Martingale with losing streak length stop loss
const baseBet = 100 // how many satoshis to bet initially
const target = 2.1 // target multiplier
const betMultiplier = 2 // what to multiply the bet size by when we lose a wager
const stopGameAfterLoss = 9 /* Trigger will lead to drop/stop script */
const sleepTimeInMS = 100
const dropInsteadOfStopScript = false /* stop script or drop losses and continue play */
const changeSeed = 0 /* How much losses obtain, and then change seed to decrease chance of big streak, 0 to disable */
const engine = this
@ruzli
ruzli / Hotkeys Implementation for Ether-Dice.js
Created February 10, 2021 16:38
Hotkeys Implementation for Ether-Dice
var map = {};
chat = document.getElementsByClassName("form-control")[ 0 ];
function getBalance() {
var newBalance = document.querySelector("#top-bar > div > div > div.balance-container.nav-item > span:nth-child(2)").innerText;
var conBalance = String(newBalance.replace(",", "."));
return Number(conBalance);
}
@ruzli
ruzli / script_tweak.js
Last active January 21, 2021 21:22
Script on skips for bustadice [TWEAK]
var config = {
wager: { label: "Wager", type: "balance", value: 100 },
max_pay: { label: "Max payout", type: "multiplier", value: 70 },
min_pay: { label: "Min payout", type: "multiplier", value: 2 },
max_loss: { label: "Max lose", type: "balance", value: -100000 },
bets_prog: { label: "Progression betting", type: "checkbox", value: false },
};
let target = 1.01;
let turns = 0;
@ruzli
ruzli / Community gift! List of payouts-bets and nice control over lists.js
Last active December 12, 2020 17:34
Community gift! List of payouts/bets and nice control over lists
var config = {
list_bet: {
value: 'list1', type: 'radio', label: 'Pick Bet List',
options: {
list1: { value: '10, 9, 7, 6, 5, 20, 18, 16, 14, 32, 20, 30, 26, 22, 18, 14, 20, 15, 20, 25, 45', type: 'text', label: 'Bets 1' },
list2: { value: '320, 170, 37, 76, 51, 50, 118, 16, 141, 72, 60, 30, 26, 77, 18, 14, 20, 35, 20, 85, 145', type: 'text', label: 'Bets 2' },
list3: { value: '320, 170, 37, 76, 51, 50, 118, 16, 141, 72, 60, 30, 26, 77, 18, 14, 20, 35, 20, 85, 145', type: 'text', label: 'Bets 3' },
},
},
list_target: {
@ruzli
ruzli / payoutmartingale.js
Last active November 26, 2020 01:42
Payout Martingale [mydicebot]
/*jshint esversion: 6 */
baseBet = 0.00000001;
betHigh = false;
nextBet = baseBet;
var initBet = baseBet;
var initPay = 1.13;
var betIncrease = 0.00000000;
var payIncrease = 1.13;
@ruzli
ruzli / Good old times.js
Created November 18, 2020 03:51
Good old times!
var config = {
clientSeed: { label: "Client seed", type: "text", value: "123" },
stopiflost: { value: 0, type: 'text', label: 'Protect Balance' },
}
var protect = config.stopiflost.value;
var now = (this.balance / 100);
const baseBet = 300 /* In satoshi, which means it will place 2 bits */
const target = 1.5
@ruzli
ruzli / Simple martingale with stop loss and stop profit.js
Last active October 20, 2020 09:57
Simple martingale with stop loss and stop profit
var config = {
baseBet: { label: "Base bet", type: "balance", value: 100 }, // how many satoshis to bet initially
target: { label: "Target", type: "multiplier", value: 2 }, // target multiplier
betMultiplier: { label: "Bet multiplier", type: "multiplier", value: 2 }, // what to multiply the bet size by when we lose a wager
stopBalance: { label: "Stop if profit above[0 = OFF]", type: "balance", value: 100000 },
stopLoss: { label: "Stop if lose more than[0 = OFF]", type: "balance", value: -100000 },
}
var engine = this
var highBalance = this.balance;
@ruzli
ruzli / Pumpkins.js
Last active October 16, 2020 01:11
Pumpkins
var config = {
wager: { label: "Wager", type: "balance", value: 100 },
min_pay: { label: "Min payout", type: "multiplier", value: 5 },
max_pay: { label: "Max payout", type: "multiplier", value: 40 },
max_loss: { label: "Max lose", type: "balance", value: -100000 },
bets_prog: { label: "Progression betting", type: "checkbox", value: true },
prog_reset: { label: "Progression reset", type: "checkbox", value: false },
progression_bet_amount: { label: "Bet Progression", type: "balance", value: 100 },
};
@ruzli
ruzli / Simple data gathering.js
Created September 6, 2020 16:33
Simple data gathering
var rolls = 0
var history = [];
var super_nyans = 0, nyans = 0;
while (true) {
rolls++;
const {multiplier} = await this.bet(100, 1.01);