+ "content": "\n\nMyDiceBot\n\n https://mydicebot.com\n MyDiceBot is World #1 Cross-Platform Dicing Bot.\n Multiple platforms are supported, including Windows, Mac, Linux, and Web.\n Multiple blockchains are supported, including STEEM.\n Multiple programming languages are supported such as Lua.\n Open Source and Free Forever\n\n\nDownload\n\n\n https://github.com/mydicebot/mydicebot.github.io/releases/tag/190122\n\n\nMajor Feature update\n\n Simulator is available NOW!\n\n You could debugging your own script in Simulator without any risk.\n\n You can adjust house edge to debug against.\n\n Server Simulation Code\n async _simulatorBet(amount, target, condition, houseEdge ) {\n let betInfo = {};\n betInfo.id = 'MyDiceBot_'+Math.random().toString(16).substring(2).substr(0,10);\n betInfo.amount = parseFloat(amount);\n let serverSeed = Math.random().toString(36).substring(2);\n let clientSeed = Math.random().toString(36).substring(2);\n let cryptoHmac = crypto.createHmac('sha256', serverSeed);\n let resultSeed = cryptoHmac.update(`${clientSeed}`).digest('hex');\n let resultNumber = parseInt(resultSeed.substr(0, 10), 16);\n let diceRoll = (resultNumber % 1000000)+1;\n let factor = 1000000/(target+1);\n if(condition == 'over') {\n factor = 1000000/(999999-target+1);\n }\n let profit = (amount * factor) * (1 - houseEdge) - amount;\n console.log(amount,factor,betInfo.amount, houseEdge);\n betInfo.roll_number = diceRoll/10000;\n betInfo.win = false;\n if(condition == 'over') {\n if(target<diceRoll) {\n betInfo.win = true;\n }\n } else {\n if(target>diceRoll){\n betInfo.win = true;\n }\n }\n if(betInfo.win) {\n betInfo.payout = parseFloat((betInfo.amount+profit)).toFixed(8);\n betInfo.profit = parseFloat(profit).toFixed(8);\n } else {\n betInfo.payout = 0;\n betInfo.profit = parseFloat(-betInfo.amount).toFixed(8);\n }\n console.log(betInfo);\n return betInfo;\n }\n \n \n\n\nImprovement - Default embedded scripts for easy usage\n\n basic-martingale.lua\n```lua\nchance = 49.5\nmultiplier = 2\nbasebet = 0.00000001\nbethigh = false\nnextbet = basebet\n\n\nfunction dobet()\n\nif win then\n nextbet = basebet\nelseif !win then\n nextbet = previousbet * multiplier\nend\n\n\nend\n* chance-10.lua\n```lua\nchance = 10\nnextbet = 0.00001000\nbasebet = 0.00001000\ninstallBet = 0.00001000\nX = 1.101\nmemberbet = 0\nbreakpoint = 0\nbethigh = true\ngame = true\nregame = true\n\n\nfunction dobet()\n if balance >= breakpoint then\n breakpoint = balance\n end\n\n if bethigh and currentroll < chance then\n X = X + 0.001\n end\n\n if !bethigh and currentroll > (100-chance) then\n X = X + 0.001\n end\n\n if game then\n if !win then\n installBet = previousbet*X\n end\n if win then\n installBet = memberbet\n end\n if currentstreak < -10 then\n installBet = 0.00001000\n game = false\n regame = false\n end\n nextbet = installBet\n end\n if !game and currentstreak < -20 then\n regame = true\n end\n if win and regame then\n game = true\n nextbet = memberbet\n end\n if win and balance >= breakpoint then\n memberbet = 0.00001000\n X = 1.101\n game = true\n nextbet = 0.00001000\n end\n if previousbet >= memberbet then\n memberbet = previousbet\n end\n print(breakpoint)\n print('mult '..X)\n print('memberbet '..memberbet)\nend\n\n\n regression.lua\n```lua\n–[[\n This script doubles the bet after a loss but starts at a very high chance of success: 95%.\n After each bet the chance reduces enough to bring equilibrium to profit but stops reducing chance at 49.5%.\n First loss goes from 95% to 67%, then 57% and then gradually lower and closer to 49.5%.\n It basically buys you a few more higher probability roles before the same old 49.5% martingale.\n author: grendel25aaaaa\n link: https://bot.seuntjie.com/scripts.aspx?id=38\n]]\n\n\n– You could just use Sleep(n) to use LUAs built in sleep function. \n– But this one will have the same result without killing your CPU.\nfunction sleep(n)\n\tt0 = os.clock() \n\twhile os.clock() - t0 <= n do end\nend\n\n– init\nchance = 95\nbasebet = 0.00000100\nbethigh = false\nlossstreakcount = 0 – sample: user-defined lossstreakcount.\nnextbet = basebet\n\n– do bet and let’s rock\nfunction dobet()\n\n-- some sites limit bet latency due to the low bet amount.\n-- enable it and avoid to be banned, just in case.\n-- eg. 2 means sleeping 2 seconds\n-- sleep(2)\n\n-- adjust the stopping condition of session profit.\nif profit >= 0.00001000 then\n print(\"profit done, so stop.\")\n stop()\nend\n\n-- adjust the stopping condition of wins.\nif wins >= 1000 then\n print(\"wins done, so stop.\")\n stop()\nend\n\n-- adjust the stopping condition of bets. \nif (bets >= 5000) then \n print(\"bets done, so stop.\")\n stop()\nend\n\n-- adjust the stopping condition of loss streak. \n-- eg. -10 means 10 loss streak\nif (currentstreak <= -10) then\n print(\"10 loss streak, so stop.\")\n stop()\nend\n\n-- if win, reset bet to base amount.\nif (win) then\n chance = 95\n nextbet = basebet\n lossstreakcount = 0\n print(\"WIN\")\nend\n\n-- if loss, \n-- first loss goes from 95% to 67%, \n-- then 57% and then gradually lower and closer to 49.5%.\nif (!win) then\n lossstreakcount += 1\n if (lossstreakcount > 1) then\n nextbet = previousbet*2\n chance = (1/(((nextbet+(nextbet-basebet))/nextbet)))*100\n if chance < 49.5 then chance = 49.5 end\n bethigh = !bethigh\n print (\"LOSE\")\n else\n nextbet = previousbet*2\n chance = (1/(((basebet+nextbet))/nextbet))*100\n if chance < 49.5 then chance = 49.5 end\n bethigh = !bethigh\n print (\"LOSE\")\n end\nend end ```\n\n\nSupporting Dice Sites (alphabet sequence)\n\n 999Dice\n Bitsler\n Crypto-Games\n MagicDice\n PrimeDice\n Stake\n YoloDice\n\n\nQuick Start\n\n\n Download MyDiceBot Binaries here: MyDiceBot Releases.\n Different execution methods on different platforms.\n \n \n Linux (Open Terminal)\n\n chmod +x mydicebot-linux\n \n\n ./mydicebot-linux\n \n \n \n Mac (Open Terminal)\n\n chmod +x mydicebot-macos\n \n\n ./mydicebot-macos\n \n \n \n Windows (Open Command Prompt)\n\n mydicebot-win.exe\n \n \n \n \n Choose Dice Site, Input username/password/2FA/APIKey, then Login.\n Bet and WIN.\n\n\nStartup Options\n\n \n -port (port is 3000 by default)\n\n mydicebot-win.exe -port 12345\n \n Report Issue\n \n \n https://github.com/mydicebot/mydicebot.github.io/issues\n \n\n\n\n",
0 commit comments