Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- * Sweepabit.com martingal bot - Made by http://dexontech.net/
- * + When editing the variables, be careful to not remove any ';' or ',' character.
- * To stop the bot, refresh the page.
- * To change the amount of bets per second change the "setTimeout(function(){placeBet();},100);" on line 70 and 74. The "100" is 100ms
- *
- *
- *
- *
- *
- * Calculator: https://jsfiddle.net/ebr86pxj/1/embedded/result/
- *
- * /!\ BE CAREFUL: USING UNKNOWN SCRIPTS MAY COMPROMISE YOUR WALLET SECURITY.
- * /!\ USE ONLY IF YOU TRUST THE PERSON.
- */
- var _settings = {
- baseBet: 0.18, // From a balance of 200573 bits. 11143 per 0.01 base.
- bombs: 4, // Alt. 8
- multiply: 5.7, // Alt. 3
- houseEdge: 1 // 1% House edge. Cannot be lower than 0.01 and max 100. (Do not touch if not sure)
- };
- // --- Edit over this line --- \\
- var bet = _settings.baseBet, lastBet = 0, lastGame = null;
- var houseEdge, odds, next;
- var tilesClicked = 0;
- console.log("[BOT] Starting Bot...")
- $.post("https://api.moneypot.com/v1/hashes?access_token="+access_token, '', function(json) {
- if(!connected) return;
- Hash = (typeof json.hash === "undefined"?false:json.hash);
- houseEdge = (_settings.houseEdge/100);
- odds = ( (25-_settings.bombs-tilesClicked) / (25-tilesClicked) );
- console.log("[BOT] Received first provably fair hash:", Hash);
- placeBet();
- });
- function placeBet(){
- //console.log("[BOT] Betting...");
- var wager = (bet*100);
- var rangeWin = Math.floor(Math.pow(2,32)*(odds));
- next = ( bet * ((1.0-houseEdge)/odds) ) - bet;
- $.ajax({
- type: "POST",
- contentType: "application/json",
- url: "https://api.moneypot.com/v1/bets/custom?access_token="+access_token,
- data: JSON.stringify({
- client_seed: parseInt(game.clientSeed),
- hash: String(Hash),
- wager: wager,
- "payouts": [
- {from: 0, to: rangeWin, value: ((bet+next)*100)},
- {from: rangeWin, to: Math.pow(2,32), value: 0}
- ]
- }),
- dataType: "json",
- error: function(xhr, status, error) {
- console.error("[BET ERROR]",xhr.responseText);
- console.alert("Important: Remember to not show your access token to anyone.");
- return;
- }
- }).done(function(data){
- lastBet = bet;
- Hash = data.next_hash;
- if(data.outcome >= rangeWin){ // lost
- //console.log("[BOT] Lost bet.");
- bet *= _settings.multiply;
- setTimeout(function(){placeBet();},25);
- }else{ // win
- //console.log("[BOT] Won bet.")
- bet = _settings.baseBet;
- setTimeout(function(){placeBet();},25);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement