This file contains hidden or 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
const WebSocket = require('ws'); | |
const readline = require('readline'); | |
const wss = new WebSocket.Server({ port: 4041 }); | |
wss.on('connection', (ws) => { | |
console.log(getCurrentTime() + 'Connected'); | |
ws.on('close', () => { | |
console.log(getCurrentTime() + 'Disconnected'); |
This file contains hidden or 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
const wss = new WebSocket('ws://localhost:4041'); | |
wss.addEventListener('open', () => { | |
console.log(getCurrentTime() + 'Connected'); | |
}); | |
wss.addEventListener('close', () => { | |
console.log(getCurrentTime() + 'Disconnected'); | |
}); |
This file contains hidden or 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
stop = (() => { | |
let running; | |
function bet() { | |
return cd.bet(cd.amount) | |
} | |
(function() { | |
running = setInterval(bet, 1); | |
})() |
This file contains hidden or 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
stop = (() => { | |
let running; | |
function bet() { | |
return prod.bet(prod.amount) | |
} | |
(function() { | |
running = setInterval(bet, 1); | |
})() |
This file contains hidden or 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 = { | |
// 261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377 | |
list_bet: { | |
value: 'list2', type: 'radio', label: 'Pick Bet List', | |
options: { | |
list1: { value: '10, 5, 20', type: 'text', label: 'Bets 1' }, | |
list2: { value: '1, 1, 2, 3, 5, 9, 16, 31, 59, 117, 233, 477, 1000, 2333', type: 'text', label: 'Bets 2' }, | |
}, | |
}, | |
list_target: { |
This file contains hidden or 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 = { | |
wager: { value: 100, type: 'balance', label: 'Base Bet' }, | |
payout: { value: 2, type: 'multiplier', label: 'Payout' }, | |
} | |
var Profit = 0, Total_Profit = 0, Total_Rolls = 0, Playing = true, baseList = [ 1, 2, 3 ], RolledGames = 0; | |
var PAYOUT = config.payout.value, WAGER = config.wager.value; | |
/* -------------------------------------------------------------- */ | |
if (engine.gameState === "GAME_STARTING") PerformBet() |
This file contains hidden or 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
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 |
This file contains hidden or 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 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); | |
} |
This file contains hidden or 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 = { | |
headerCommon: { label: "Common Settings", type: "noop", value: "" }, | |
baseBet: { label: 'Base Bet', type: 'balance', value: 1000 }, | |
minPayout: { label: 'Target Min', type: 'multiplier', value: 1.08 }, | |
maxPayout: { label: 'Target Max', type: 'multiplier', value: 50.00 }, | |
divPayout: { label: 'Target Div', type: 'multiplier', value: 0.80 }, | |
compRate: { label: 'Compound %', type: 'multiplier', value: 0.02 }, | |
compStep: { label: 'Compound At', type: 'multiplier', value: 1.10 }, | |
headerCond: { label: "Conditions Settings", type: "noop", value: "" }, |
This file contains hidden or 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 = { | |
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 |
NewerOlder